Im trying to link my facebook profile to my website , but when I put the url into the like box it gives me a message "Could not retrieve ID for the specified page. Please verify correct href was passed in."How can I fix this ?
The Like Box does not work with personal profile page. You need to create a fan page or an app.
Related
I've retrieve my page token from developer.facebook.com to share post in a my page using php from script found here: Simple example to post to a Facebook fan page via PHP?
All is ok if I try to post only a text.
Then i tried to include a picture example from a random domain like "http://www.samsung.com/image.jpg". But I get this error:
(#100) Only owners of the URL have the ability to specify the picture, name, thumbnail or description params.
So, i tried to insert a url image from my own domain "http://www.example.com/image.jpg" but I get the same error.
I've completed verification-domain inside business-manager of facebook. then i've linked my fb page "Test" to my domain (always inside business-manager).
Error still remain!
Any suggest?
edit: my test script running on localhost with wamp now
Change the Open Graph Tags of the Page Source if you want to change data like picture, description, ... it is not possible to set them with the API anymore.
More information: https://developers.facebook.com/docs/sharing/webmasters/
Btw, that other thread is from 2011. A lot has changed since then.
Edit: For posting a picture, use this API: https://developers.facebook.com/docs/graph-api/photo-uploads/
I've found that the Like Box app for Facebook will not recognise certain pages and profiles. I thought it might have a been a privacy issue buts its not. As it shows pages I have no affiliation with fine enough. But My own personal page and my clients page will show.
clients page is www.facebook.com/scottish.p.drumming
All I see is this error message:
There was an error fetching the like box for the specified page.
Igy is right, the like box can only be used on a facebook page and not on a facebook user profile.
One option would be to convert your user profile to a facebook page. This can be done following the steps on the link below:
https://www.facebook.com/help/?faq=116067818477568#How-do-I-convert-my-personal-account-to-a-Facebook-Page?
When this is in place you can then visit the plugins page and get the code needed for your like box
So I have a website where I want to put the subscribe button, here is the code
<!--FB SUBSCRIBE!-->
<div class="fb-subscribe" data-href="http://www.facebook.com/Entendu.info" data-layout="box_count" data-show-faces="true" data-font="arial" data-width="50"></div>
But when I visit the webpage (www.entendu.info/moderate) On the right where the susbscribe button is suppposed to shoe I got : error and when I click on it :
The href parameter must reference a valid Facebook user profile, but
"http://www.facebook.com/Entendu.info" is not a valid Facebook user
profile.
The link of the error
But the problem is that my url is totally valid !
https://www.facebook.com/Entendu.info
Thanks for your help
Well the answer is in the error itself -
The href parameter must reference a valid Facebook user profile, but "http://www.facebook.com/Entendu.info" is not a valid Facebook user profile.
you have to use a valid user profile and not the URL of a page.
One can not subscribe to a page in the same way that one can not like a person.
You should use a Like button or Like box in your app if you want to add fans to the page.
There is a different facebook embed code for PAGES and USERS
To subscribe to a Fan PAGE (usually organizations like cocacola, nike, I used it for participateHW)
http://developers.facebook.com/docs/reference/plugins/like-box/
To subscribe to a USER
http://developers.facebook.com/docs/reference/plugins/subscribe/
all the other social plugins are here (just read the description carefully):
http://developers.facebook.com/docs/plugins/
I am using Facebook's "Like Box" social plugin, for which one can get the code here:
http://developers.facebook.com/docs/reference/plugins/like-box/
However, when I populate the field entitled "Facebook Page URL" with the URL for my Facebook page, I get an error message in place of where the "Like Box" preview should show up. The error message is:
"Could not retrieve id for the specified page. Please verify correct href was passed in."
I've entered the URL exactly as it appears in the address bar when one navigates to my Facebook profile in a browser. Does this have something to do with my privacy settings on Facebook??
Thanks in advance.
You can't add like box for a profile. Have you ever liked any profile on facebook??
trying to get the facebook like box (the plugin on the facebook developers page) on my website, so i can put the wall posts on the website, but when i enter the facebook url, all i get is Could not retrieve id for the specified page. Please verify correct href was passed in.
Are you using php? You may need to use url_encode('http://mysite.com/etc') on your own own link since I believe it is passed as a variable in the FB like button (could be wrong).