Automatically add links to published posts to your Facebook pages, groups, etc.
For detailed FAQ and other support visit http://blog.readygraph.com/add-link-to-facebook/faq/
Warning: if you delete your Facebook application, you might also delete the links added through it!
--- Usability ---
Take a look at the screen shot to get an idea of what is what.
The plugin will use the excerpt as description and when not available it will use part of the post text. If you specify a Text trailer the text will be truncated and the text trailer (for example Read more ...) will be used as last words (no link, Facebook does not allow this). If you leave the text trailer blank, Facebook will show See more and if you click on it, you will see the whole post text on Facebook. The options Use site title as caption and Use excerpt as message (tab Appearance) do what they say. If you leave the excerpt blank, the site title will be used as message. This is to prevent grouping of links. See question U37 for an alternative method.
Because your current WordPress theme doesn't support featured images.
A few notes:
As an alternate to feature images, you can use the Add Link to Facebook post meta box (since version 0.23). In this box you can select one of the images attached to the post. Selecting an image this way takes precedence over the other settings.
Always to the wall of the post author, if configured. Even if somebody else is editing the post. You can add links to pages and groups too, see question U12 and U13.
Mostly the first picture in the post, but it depends on the theme and layout of your website. You are adviced to let the plugin select an image (the default setting is to select the first image in the post).
Maybe because the image is too small or Facebook had trouble accessing the image. Another cause could be that you disabled the Open Graph Protocol (a plugin option enabled be default).
Facebook doesn't support this as far as I know, but you could let the custom link picture point to a valid but non existing address.
If the link to the post was added already to your wall, page or group, nothing, else a new link will be added. See also the next question.
Change the post status temporarily to draft, update the post and publish the post again.
Yes, when they are published automatically a link will be added to your wall, page or group too.
Don't worry, no links to private posts will be added.
This option is only available after you have authorized, since information from Facebook needs to be fetched.
Just go to the plugin settings through the WordPress Tools menu and select the page you want the links to be added to using the option Add to page on the tab Page/group. Note that pages and groups exclude each other (except in the Pro version).
If the page/group you want to add links to doesn't appear, make sure you have authorized the plugin with a personal Facebook account that has access to the page/group and that you have allowed all the permissions the plugin asked for. If you want to check the permissions, just press the authorize button on the plugin settings page again. If you want to change the Facebook account you have authorized the plugin with, see question U47.
This option is only available after you have authorized, since information from Facebook needs to be fetched.
Just go to the plugin settings through the WordPress Tools menu and check Use groups on the tab Page/group. You'll have to re-authorize one more time, because an extra Facebook permission is required for this. Note that pages and groups exclude each other (except in the Pro version). Also note that it is only possible to add links using your personal account (a Facebook limitation). However, you can add links to pages as page owner, so consider switching to pages.
If you want to add links to a group, the Facebook account you authorized with should have permission to that group.
Since Facebook doesn't accept HTML, all HTML is stripped from the post text and excerpt before adding a link to Facebook. This means that hyperlinks are stripped too. The hyperlink texts are preserved, however. If you want to keep hyperlinks, check the option Keep hyperlinks. The consequence is that the hyperlink texts will be stripped. So you have to choose if you want the hyperlink text (the default) or the hyperlink itself.
Yes, just check the option Add links for new pages (settings tab Misc.).
For two reasons:
You can use the Dutch translation as a start. After saving the file, you can translate it by using a text editor or Poedit. See here for details on plural forms. Another way is to install and use the Codestyling Localization plugin. Please use this contact form to send me the new .po file.
An administrator can setup his wall (personal/page/group) for all users of one site by checking the option Share with all users on this site. Other users cannot configure their own wall anymore, if this option is used. Only the same administrator can undo this.
Assuming that you have configured and authorize the plugin, you can check this:
Note that each WordPress user (author) should authorize the plugin, unless you check the option Share with all users on this site in the Easy setup section.
See also question U41.
In the WordPress menu Tools.
Note that if you checked the option Share with all users on this site, only the adminstrator that checked this option can access the settings.
If you cannot access the other administrator account for some reason,
add these lines of code to the end of the file add-link-to-facebook-class.php (before
if (is_multisite()) delete_site_option(c_al2fb_option_app_share); else delete_option(c_al2fb_option_app_share);
This code resets the option Share with all users on this site.
To reset the option Required capability to use plugin, you can add this:
Example to show liker names:
If you want to use shortcodes in a (text) widget, you should enable the option Execute shortcodes in widgets.
This feature is only available in the Pro version of the plugin.
The option Show likers below the post text shows the names of the people that liked the link the plugin added on Facebook. The like button on your website is a standard Facebook like button which is not connected to the link added by the plugin (in fact there may not even have been added a link). The like button is connected to the post (page) on which it is displayed. Unfortunately there is no way to connect the likes of the link to the post and the likes of the post, since Facebook consider these as different objects.
How, when and where links, comments, etc appear on your wall/page/group is entirely determined by Facebook. Only a few link properties can be set by the plugin. See here for the official documentation.
The social plugins, such as the like box, comments plugin and activity feed, seem to be part of your website, but in reality these plugins run on Facebook. This means the appearance and behavior of these plugins can only be changed by Facebook.
Yes, enable the widget option Show everywhere using my settings
First read the previous question and this documentation for some background information.
Optionally create a landing page for logged in users and set the plugin option Login redirect URL to it.
Note that the registration form and login button are not shown when you are logged in. The registration form is also not shown if users cannot register.
Advanced use: you can set what to display when a user has logged in using the option Text or HTML when logged in (default behavior is to display nothing). It is possible to use shortcodes, for example defined using the Shortcode Exec PHP plugin. Stein Ivar Johnsen developed the following shortcode to display a little welcome message along with the first name and avatar of the logged in user:
global $current_user; wp_get_current_user(); echo '<p>Welcome <br />' . $current_user->user_firstname . '<br />'; echo '<div id="avatar">' . get_avatar($current_user->user_email, 32) . '</div>'; echo '<a href="' . admin_url('profile.php') . '">Profile</a><br />'; echo '<a href="' . wp_logout_url(home_url()) . '">Logout</a></p>';
Question E22 describes possible errors for the Facebook registration form / login button.
No, this can't be removed or changed for automatically added links, see also question U27. The only thing that can be changed is the Facebook application name after 'via'.
From version 1.149.1 you can set a video URL in the post editor. Please note that the URL must link directly to the video and not to a page that displays the video.
The plugin just adds the standard Facebook like/send button. Facebook doesn't allow any change to the like/send button, except for a very few things. The most important thing that can be controlled is the link the like button is associated with. The default is the current post and page, which is almost always what you want. Likes for this post or page are counted.
Some plugins use custom post types to store information, for example some contact forms and twitter plugins. For these custom post types a link will be added to Facebook too. Sometimes this is desirable and sometimes not. If this is not wanted, you will have to find out the name(s) of the custom post types and to put them into the plugin option Exclude these custom post types (admin only). The author of the plugin will probably know the name(s), else you will have to look into the source code or database. The custom post types for the last 10 posts are visible in the debug information (see last question).
First check if the Open Graph Protocol is enabled (plugin settings tab Common). Next check if the option Link picture (tab Picture) is set correctly. The default First image in the post is mostly what you want. If you want to use a featured image as link picture, see question U02 and U03.
You cannot add links with less privacy as specified in the Facebook application settings. To change this: Privacy Settings (right top triangle) > Ads, Apps and Websites > Apps you use > Edit Settings (button) > Edit (link) > Posts on your behalf. The privacy option doesn't work if you use the option Use links API instead of feed API.
Enabling the option Use excerpt as message will prevent grouping of links. If you don't write an excerpt the site title will be used as message. You can also enable the option Use links API instead of feed API (tab Admin). The links API does not work for groups (a Facebook bug). See the previous question for another limitation.
Due to a Facebook bug the links API will not work for groups
Try disabling one of these options on the plugin settings tab Admin:
but be sure to check if everything still looks and works as should, because these options are known to be incompatible with some plugins.
First check if the setting Integrate comments from Facebook on the plugin settings tab Comments is enabled (each author should enable this individually). It could be that your theme is incompatible with this feature. Switch back to the default theme (Twenty Ten/Eleven), wait at least 10 minutes (because of caching) and then refresh the post page where you expect Facebook comments. Please note that only comments on links added by the plugin are imported (the link is the anchor) and only as native comments. Another potential problem are the privacy settings of the Facebook account that was used to comment on Facebook. Try writing a comment with another Facebook account.
For posts with comments disabled or which are excluded based on the settings tab admin or in the post editor, no comments will be imported. To prevent problems with Facebook, only comments for young posts are imported (less than a week old).
Comments are not imported for the Facebook comments plugin
See also question U27.
The messages widget only imports status updates, not links with pictures. Consider using the activity feed instead.
Read Your Average Facebook Post Only Reaches 12% Of Your Friends to understand why.
Added links are often not visible on your own timeline too.
Enable these options:
Thank Facebook for this. You might be able to fix it by switching to the links API, but read about the limitations in question U37.
Facebook only shows thumbnails for link pictures (see also question U27). This option exists only to solve aspect ratio problems in some case.
You are probably using a non-personal Facebook account type. Try to login with a personal Facebook account that has access to the page you want to add links to.
If you enabled comment integration: try increasing the refresh/cache time (option Refresh Facebook comments every, settings tab Admin) or try decreasing the number of posts to import comments for (option Refresh Facebook comments for) or try enabling the option Refresh Facebook comments in the background.
This plugin does require some memory and processor cycles, maybe more than your hosting provider provides, so consider contacting your hosting provider for an upgrade or switching to another hosting provider.
Just remove the Facebook App ID & Secret from the Easy setup section on the plugin settings page and follow the setup guide again.
--- Security ---
Users with the edit_posts capability: all user roles, except subscriber. Since version 0.11 administrators can change this using the setting Required capability to use plugin.
--- Compatibility ---
Most likely yes, but featured images can only be used as link picture when your theme supports this. See also the next question.
The question is more: is plugin (or theme) xxx written in a compatible way. I have looked dozens of times to other plugins (and themes), mostly with the conclusion that the plugin doesn't behave as it should. For example by adding pictures or altering texts after a post have been published. Because of this I don't give support on compatibility with other plugins and themes anymore. You should contact the author of the other plugin or theme. The author of the other plugin or theme is free to contact me if needed.
This is an option, when enabled shortcodes will be processed. This option is disabled by default, because not all plugins are compatible with it, especially forum software.
Yes, each user can configure his/her own wall, page or group. The same user can setup the plugin multiple times for multiple sites.
Yes, via both XML-RPC and the Atom Publishing Protocol. So you can use for example an Android or iOS powered device (XML-RPC) or Window Live Writer (Atom) or BloGTK or Blogilo for Linux to publish posts and still have links added to your wall or page automatically. Don't forget to enable remote publishing using the WordPress menu Settings > Writing.
Yes, but the custom post type should support custom values for it to work.
Assuming that you embed a NextGEN Gallery into a post, set the option Link Picture to First image in the post. Disable the option Do not execute filters for texts, but take care to check if this doesn't result in compatibility problems with other plugins. Also enable the option Do not execute shortcodes for texts. Please note that changes in NextGEN may cause this not to work anymore, see also question C02.
--- Error messages ---
You have probably entered a wrong App ID or the Facebook application may be deleted. If you didn't create a Facebook application yet, you should follow the instructions in the yellow box on the plugin page.
You have probably entered a wrong App Secret.
You have most probably skipped the settings part of step 2 of the Setup guide.
The plugin has not been granted all Facebook permissions required, authorize the plugin again. If you are trying to add links to a page you do not administer, you need to acquire the permission manage_pages, see the setup guide.
You have probably reset the App Secret. You should re-enter it.
Your WordPress installation is probably configured incorrectly. In most cases there is a second colon in the site URL that shouldn't be there. See here for how to change your WordPress configuration.
You could try to re-authorize to fix this, but it should not happen.
Should not happen.
You have probably entered an access token manually, but incomplete or with extra characters.
cURL errors are almost always caused by internet connection problems. For most cURL errors you need support from your hosting provider.
Recent versions of the plugin report cURL errors encountered while importing Facebook comments and likes too: Import comment: cURL error ... and Add comment: cURL error ... These error messages will be removed automatically after a next successful import for the same post/page. If these errors appear now and then, don't worry about them. This just means the internet connection from your hosting server isn't perfect. If this happens frequently and Facebook comments and likes are not imported at all because of these errors, it is time to contact your hosting provider.
cURL errors commonly reported:
You can find all cURL error codes on the libcurl error page.
You are probably using Microsoft Internet Explorer. This browser has the bad habit not to display the content when there is an HTTP error. Actually you are most probably having one of the above errors, but you cannot see which one. You could temporarily switch to Chrome or Mozilla Firefox.
You may have deleted a link on Facebook that was added by the plugin and also tried to delete it using the plugin. See question E19 for how to remove the error message and question U09 for how to add a link for an existing post.
You might need to manually remove the link information of the plugin. On the post edit page click Screen Options (upper right) and tick Custom fields. Scroll down to the meta box Custom fields and delete the value al2fb_facebook_link_id.
You can prevent this problem by deleting the link using the plugin.
Most often this happen when you changed your Facebook password. The access token the plugin acquired during the authorization process may be revoked by Facebook. Maybe because there was a security problem with your Facebook application or account. Re-authorizing will probably solve this problem.
This problem is probably caused by Facebook and applies at least to multi-sites using the same application for each site. A workaround might be to use a different application for each site.
See here for progress on this problem.
This message occurs when clicking on the like button. The like button probably points to a page without Open Graph Protocol meta tags. If you didn't enable the Open Graph Protocol try to enable it. If you have set the option Link to, make sure this page has Open Graph Protocol meta tags. If this option is not set (the default) the like button points to the post or page. Note that the plugin cannot create the meta tags for pages with more than one post (for example the home page, categories and archives). The plugin is only able to determine the correct Facebook application for posts and pages, because it needs to know an author for this. You can use the URL Linter to see if there are valid meta tags.
The plugin tried to add a WordPress comment to an added link on Facebook, but the link does not exist anymore. To prevent this message in the future, you should delete the link from WordPress too. While deleting, you will probably get the error described in question E14 too.
It could be that you have filled something wrong into the field App ID. This field should contain only digits.
The first thing you should try is to simply update the post(s) using the WordPress update button. The plugin will add a link to the post if it didn't already do that and remove the error message in the process. You can also tick the checkbox Clear error messages in the post submit box, near the update button. In this way you can clear the error message without adding a link to Facebook (you'll probably want to check Do not add link to Facebook too in this case). Since version 1.163 you can clear all errors for the current user using an option in the settings tab 'Misc'.
Authorizing the plugin again will most probably solve this problem.
Your hosting server probably doesn't have the software installed or it isn't configured correctly to make a (secure) connection to the internet. Ask your provider to install and configure cURL.
You are probably using an existing Facebook application. You can solve this problem by going into application settings and setting the Stream post URL security to disabled under advanced. If you are adding links to a group, try disabling the option Add 'Share' link.
Your hosting provider does not provide cURL and file_get_contents isn't working too. So, the plugin isn't able to communicate to the internet. You should ask your hosting provider to install and configure cURL.
Double check the App ID in the Easy setup section and try to authorize the plugin again.
The access token has expired for some reason. This problem can probably be solved by authorizing the plugin again.
It could be that your hosting server is blocking things (firewall, max. execution time, etc) or that your local firewall is blocking things or that your browser is incompatible.
If you have access to your hosting server logs, check if there are error messages.
Authorizing the plugin again is reported to solve this problem.
This is probably because you are trying to add links to an application page. Check the pages you are adding links to on the plugin settings tab Page/group.
This is most probably caused by multiple plugins outputing the Open Graph Protocol meta tag og:url. Make sure that other plugins don't output conflicting OGP tags.
Just enable the Facebook app advanced option 'July 2013 Breaking Changes'.
See here for more information.
See here for more information.
--- Support ---
There is only support for pro users. Please reply to the activation instructions to get support.
Only send debug information when asked for and always include a valid support forum topic link
Debug information not asked for or without valid support forum topic link will be ignored.
Go to the plugin page (via the Tools menu) and click on the link Debug information in the right yellow Resources panel. Fill in your name, your e-mail address, a link to the support forum where you reported the problem before and describe the problem as accurate as possible and press the Send button.
If your problem concerns a post, please include the title of the post in the message. Please note that the debug information only contains information about the last 10 posts.
The debug information sometimes doesn't arrive, therefore it isn't a bad idea to let me know on the forum you did send it.
Requires: 3.2 or higher
Compatible up to: 4.2.11
Last Updated: 1 year ago
Active Installs: 20,000+
0 of 1 support threads in the last two months have been marked resolved.
Got something to say? Need help?