7

There's a reason people say that you shouldn't download free themes from outside of wordpress.org, they might contain hidden surprises In your case, the theme inserts an advertisement at the beginning of the post content div: <div style="position:absolute;top:0;left:-9999px;">Want create site? Find <a href="http://dlwordpress.com/">Free ...


6

It appears that your site doesn't use the core WordPress Featured Image feature but instead uses a custom image field (probably from Advanced Custom Fields). Yoast's plugin, Jetpack, and presumably many others look for the Featured Image image when setting the opengraph meta tag. So you have two options: Use the core Featured Image feature with one of the ...


5

Fast 'n' Hacky The problem can be solved by changing line 319 in facebook.php to the following: if (is_home()) { This way, the front page is not treated as a home page but as a regular page, for which the facebook feature settings can be applied (and will be handled correctly). More Elegant/Complex Here is a non-hackish version. Put the following in ...


4

Put this in your head <?php $fb_image = wp_get_attachment_image_src(get_post_thumbnail_id( get_the_ID() ), 'thumnail'); ?> <?php if ($fb_image) : ?> <meta property="og:image" content="<?php echo $fb_image[0]; ?>" /> <?php endif; ?> To test it out, you don't have to create a new post, just paste your URL in here: https://...


4

In the source code I see two og:description meta tags. The first and correct one seems to be coming from your Yoast WordPress SEO Plugin. The other one is outside the plugin's block, so I guess it's defined elsewhere. Check your theme if it includes that meta tag. If not, check your other plugins. Disable them one by one to find the culprit.


4

I've managed to find a solution to my problem. I solved it with three plugins Members User Role Editor Social Login The combination of these plugins allows you to who can log in, without telling them how to log in. More specifically, anyone will be able to log in with a social network, but they won't be able to see everything. With User Role Editor, you ...


4

To answer my own question, when you use WP_Http, the transport used is selected, in this order, from this array: $request_order = array( 'curl', 'streams', 'fsockopen' ); If your PHP supports curl, WP_Http_Curl is used. Curl doesn't support adding the body array parameters when the method is GET WP_Http_Streams and WP_Http_Fsockopen on the other hand, add ...


4

To answer this one and point to the real problem: As the <head> HTML tag comes far before the actual loop, you'll need something else than the global $post. get_queried_object(); get_queried_object_id(); The plugin The code is tested and works. As you might want to keep this functionality when switching themes, I'd suggest wrapping it up in a ...


4

There is no built-in way to extract an image/image-src from the post body. If the images are attachments you can do it with get_children or WP_Query, and wp_get_attachment_image_src. function get_image_src_from_content_101578($content) { global $post; $args = array( 'post_parent' => $post->ID, ); $images = get_children($args); foreach ($...


4

Facebook caches the meta values for performance. So it is currently hosting an old version of the shared URL. You need to use the Facebook debugger, and Fetch new scrap info. This will update the stored meta values of the post. To confirm that it works, I have already fetched new data for the respective URL and this is how it looks when I share it on FB: ...


4

As was already stated, Facebook automatically detects images if the OG image tag is missing. However, in some cases, it might detect other images (e.g. not from your post but from other content). In that case, it can be useful to fetch a list of all images attached to the post and use the one you like, or, as you suggest, the first one. The example below ...


3

For Facebook: http://wordpress.org/extend/plugins/simple-facebook-connect/ For Twitter: http://wordpress.org/extend/plugins/simple-twitter-connect/ For Google+ http://wordpress.org/extend/plugins/simple-google-connect/ The twitter and facebook plugins will autopost from your site to each service. The G+ plugin is new, and still under development. I don't ...


3

This information doesn't have to be static. Here's an example: <meta property="og:title" content="<?php if ( is_single() ) { wp_title(); } else { bloginfo('name'); } ?>" /> <meta property="og:type" content="blog" /> <meta property="og:url" content="<?php echo get_permalink() ?>" /> <meta property="og:site_name" content="<?...


3

Take a look at Sociology for WordPress: Twitter/Facebook Poster plugin. As said in description: Broadcast your posts to Twitter and Facebook fan pages directly from the WordPress post page. Automatically post to Twitter and Facebook fan pages when you publish your post. Checks for already-published status. Select which or both social networks to post to on ...


3

Pretty sure the Facebook fan page RSS feed URL is like this: http://www.facebook.com/feeds/page.php?format=atom10&id=YOURFBFANPAGEID The fan page ID is the string of numbers at the end of the URL when viewing the page, for example, Jon Stewart's fan page id is 193859733506: http://www.facebook.com/pages/Jon-Stewart-for-President/193859733506 So you ...


3

body argument is used for POST requests and set in headers. For GET request encode request arguments into URL (as in your second snippet).


3

Take a look at /plugins/wpbook/includes/publish_to_facebook.php. They only have one function that posts to FB. You should be able to cobble something together from their code. Just make sure if you write your own files to them in a separate folder in your plugins directory. Otherwise any updates to WPBook will overwrite your files. The whole PHP SDK is in ...


3

I've come across this same problem before... a few things you can do. In your website, make sure you have..... An appropriate image close to the top of the page, title and alt tag are relevant A "description" META tag this is a tag that occurs in the <head></head> of the page example: <meta name="description" content="enter your description ...


3

Heres a great article I found on custom meta tags today http://umairj.com/29/modify-how-the-shared-item-appears-on-facebook/


3

You're getting the error because the Facebook and All In One Event Calendar plugins are both declaring the fb_admin_dialog() function, but PHP only allows a function to be declared once. To fix the immediate problem, log in to your server with S/FTP and rename the wp-content/plugins/all-in-one-event-calendar directory to something like all-in-one-event-...


3

WordPress plugins repository has plenty ... have you tried the Official Facebook plugin? I'd always recommend you search the plugin repository first and then come here and explain what plugins you have installed.


3

If it's only for Facebook purposes that you need it, you could add the following code to your header.php file (between <head> and </head>): <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/> Of course replace the URL in content="..." with your own image URL. A reference for all the Facebook meta tags is here: http://...


3

First, this isn't a WordPress specific question, it's a Facebook question. Secondly, Facebook caches pages, they don't crawl them on every submission. If you have a URL that has already been submitted to Facebook before, then they will have already crawled it for the OG data once before, and saved it to their cache. If you later change the OG data, they won'...


3

Go to Settings > Sharing in your dashboard Sroll down until the "Button Style" option. Choose "Official Buttons". The Facebook Share button has now changed into a Facebook Like Button. Save your changes, and you'll be good to go! If you want to add a Facebook Share button next to the Like button, you can use the "Add a new service" option: In "Service ...


3

The wpseo_opengraph_image filter can only be used to modify the existing og:image. Otherwise, you will need to hook into the wpseo_opengraph action to add a different image. Here's an example of adding an image from a custom field on the post object (assuming you're using ACF here). function my_wpseo_opengraph() { global $post; if (isset($post)) { ...


2

There are 2 ways to do this. The first is to create a function that outputs the buttons and then include it in your template. The second is to add a filter to either the_content or the_excerpt or both depending on where you want the buttons to show up. In either case the first thing you need to do is separate out the script calls from the code that ...


2

This might help you out if you haven't found an answer yet. /* BEGIN Custom User Contact Info */ function extra_contact_info($contactmethods) { unset($contactmethods['aim']); unset($contactmethods['yim']); unset($contactmethods['jabber']); $contactmethods['facebook'] = 'Facebook'; $contactmethods['twitter'] = 'Twitter'; $...


2

If I understand the question correctly, it sounds like the content is being sent without using do_shortcode(), find the portion of the plugin that posts to facebook for you and ensure shortcodes are being executed.


2

but get the first image, how i get the "featured image" of each of post? Use get_the_post_thumbnail(). You simply need to pass it the ID of the post; e.g.: <?php global $post; $post_thumbnail = get_the_post_thumbnail( $post->ID ); ?>


2

Unfortunately I do not think there is a way to do this. I believe I also read somewhere that modifying the Like button is against Facebook's Terms of Service, so I would suggest not trying to go that route. Ultimately, Facebook decides what gets shown. You could set a background image under the like button with a little 0 poking out of the right side in the ...


Only top voted, non community-wiki answers of a minimum length are eligible