Tag Info

Hot answers tagged

10

Facebook now uses opengraph protocol. You can add images using : <meta property="og:image" content="http://YOUR_IMAGE_URL" /> Add this line to your page header. Alternatively you can use my plugin to do this automatically. It just does this job and no settings are needed. http://shailan.com/wordpress/plugins/facebook-meta-tags-plugin/


8

<meta property="og:image" content="http://alexchen.info/taiwantalk/wp-content/uploads/2011/03/cheating.png" /> Visit http://developers.facebook.com/docs/reference/plugins/like/ and see "Step 2 - Get Open Graph Tags" There's also a lot of WP plugins out there that can help you to generate Open Graph tags.


7

My number 1 feature would be to have the ability to use WordPress to manage a fan page. It would have to have the ability to use a WordPress page to create a Facebook page application tab. Published posts would auto publish to the Facebook wall and comments would sync between WordPress and Facebook.


7

The image that is used for sharing is taken from a chunk of code in the header of your site that will look something like this: <link rel="image_src" href="path/to/theme/screenshot.png" /> Typically it links to the screenshot of your site in the theme. If you removed the code from the header of the file and on single.php put it inside the loop and ...


6

That really depends on how the video is embedded into the page. Facebook can only handle specific formats and if it sees something it doesn't expect, it defaults to a failsafe "show nothing" standard. If the embedded video is well-recognized standard (i.e. YouTube's default player) it should work just fine. If it's your own self-hosted video player, ...


6

Otto has some great plugins for facebook and twitter. The one is Simple Facebook Connect (Wordpress Plugin) the other is Simple Twitter Connect (Wordpress Plugin). I think you're looking for this functionality: Automatically Publish new posts to Facebook Profile or Fan Page and for Twitter: Auto-tweet new posts to an account. Both are offered by the ...


6

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 ...


5

To get your friends as a JSON object from Facebook, you can use their Graph API. Easiest way is to visit this page: http://developers.facebook.com/docs/reference/api/user/ Scroll down until you find the Friends link in the "Connections" table. That link will give you a JSON object containing all your friends. Note that the URL on that page is unique to you ...


4

This is a bit of a multi-part question, so you're getting a multi-part answer. Getting the Facebook count can be done by making a request to https://graph.facebook.com/URL. This will return a json object which contains, among other things, the number of "shares". Working example which has 4 shares as of this writing: ...


4

I use disqus on my site and it works quite well.


4

Final version of code used: function fb_comment_count($link = 'link') { global $post; $url = 'https://graph.facebook.com/'; $posturl = get_permalink($post->ID); $url .= $posturl; $filecontent = wp_remote_retrieve_body(wp_remote_get($url, array('sslverify'=>false))); $json = json_decode($filecontent); $count = $json->comments; if ($count == 0 ...


4

You need to use the Facebook Open Graph Protocol. I'm not sure why the Accepted answer isn't one of the many OG: related answers (which I've voted up) but it is wrong. http://developers.facebook.com/docs/opengraph/ You can customize many things including title, image, description, category, last update etc... if you use Open Graph. If you use these other ...


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 ...


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: ...


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 ...


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

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

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

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

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.


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 ...


3

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: ...


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

Both Simple Facebook Connect and Simple Twitter Connect have features to allow users to post comments using their Facebook or Twitter credentials. Among other things. Disclaimer: I wrote 'em both.


3

Facebook caches information about a page when share it. You can use the URL Linter to refresh the cache and see exactly what info FB has on your page. The linter has helped me quite a bit with these issues.



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