I am trying to incorporate facebook's sharing feature into my site. I am generating the URL, but I get the 'The message could not be posted to this Wall.' error message on my attempt to share. Here is how the url looks like:
https://www.facebook.com/sharer/sharer.php?u=localhost%2F%23%2Fs%2F50f30a31065f90280c000002%2F51b9e958065f90800f000000%2F2
My guess is that as I am working on localhost facebook tries to validate my URL, because if I replace it with a valid URL I can share it.
Is there some rule that my link cannot be longer than a specific length?
Facebook has to be able to parse the URL you add as parameter, so it cannot be "localhost" but a real page with Open Graph tags on a real server.
See this page for information about the OG tags: http://ogp.me/
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'm preparing to launch a new site, http://www.careerclaim.com, and if I share the URL via FB only the URL displays, not the logo and title.
I've entered the URL in FB's debugger and it returns:
Can't Download: Could not retrieve data from URL.
Please help! Thank you!!!
You are redirecting to the HTTPS version of your page, but your og:url meta element states that the version using just HTTP was the “real” one – and that leads to an endless redirect circle, https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.careerclaim.com%2F
Today, I tried to post a link from my website on my wall, but no OG meta information was fetched. Therefore, I went on to Facebook URL Linter to check things for myself and see if OG meta tags are fetched properly.
To my surprise, every link on my website including the domain itself, generated Response code: 302.
My OG tags are well set and they were working fine a few days ago. Following is what the debugger shows for my domain : http://www.price-tag.org
Response Code: 302
Fetched URL: http://price-tag.org/
Canonical URL: http://price-tag.org/
Final URL: http://price-tag.org/WpjZW/
For every page from my website, facebook linter is adding an arbitrary string like above WpjZW.
Please let me know if this is a facebook error or something has gone wrong at my end.
It seems the linter is being sent on a circular redirect loop. It is seeing a 302 redirect.
For http://www.price-tag.org I don't see anything but a 200 response code when I navigate to your website using Firefox.
However, if I remove the www from the url and go to http://price-tag.org, I do see the strange behaviour of the 302s and then a random url like http://price-tag.org/UKXRN/
I would suggest you contact your server admin or web master to see what they have in place that is doing this 302 redirect and strange url characters.
Having some issues with the feed dialog when attempting to post to a event or fan page. In my application I am using the JS API and FB.ui using the method feed.
But for a demonstration you can do it using the feed url too for example:
http://www.facebook.com/dialog/feed?app_id=131727613511269&to=287203454659917&redirect_uri=http://www.timeanddate.com/
After clicking share you get the:
Sorry, something went wrong.
We're working on getting this fixed as soon as we can.
Where:
app_id = your app
to = a event / fan page
redirect_uri = a url you are allowed to redirect to
note that the app has publish_stream permissions. (it also has manage_pages for fan pages)
The app in question by the way is: http://apps.facebook.com/tndcountdown/
Thanks,
Andy
EDIT:
An Example taken straight from the documentation:
http://www.facebook.com/dialog/feed?app_id=123050457758183&link=http://developers.facebook.com/docs/reference/dialogs/&picture=http://fbrell.com/f8.jpg&name=Facebook%20Dialogs&caption=Reference%20Documentation&description=Using%20Dialogs%20to%20interact%20with%20users.&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response&to=287203454659917
just replace to=287203454659917 with an event.. (make a test one like it did there)
A few issues I've run into will dialog is that Facebook tries to fill in any missing data. So if you don't provide a description and caption, Facebook will try to scrape the page to get that content. Depending on how the page responds to the "scraping" Facebook will error out. I always make sure I include at least a space for those fields.
It seems the feed url you provided is similar to what is in the documentation. But the demo in the documentation has extra parameters.
I'm about to add page support to my Facebook app, which does the same thing as yours.
http://apps.facebook.com/countdown-timer/
As I posted here - Facebook Send Button - 'Sorry, something went wrong.'...
I had the same problem & worked out that this was due to linking to a Facebook page that did not have a vanity URL set up (i.e. http://www.facebook.com/CubicMushroom rather than http://www.facebook.com/profile.php?id=261963707177053). If you set up a vanity URL for the page it seems to work OK (providing you link to the vanity URL version of the page URL).
To claim a vanity URL, once you have a certain no of like (it used to be 25, but think it's a little lower now) visit https://www.facebook.com/username/
Am having difficulty with the url for the facebook comment and like plugins. if I put in a simple url like "www.example.com" it works fine but my app is on a subdomain and uses querystrings to differentiate between different page states. So a sample url would be something like "facebook/example.com/index.php?id=001". However it appears facebook doesn't like this and keeps saying it is unreachable.
I can't believe facebook would limit the scope like this. Someone else must have encountered this. Any suggestions?
Facebook posts have an id something like 123456789012345_123456789012345.
The part prior to the underscore is the page id. The part after is the post id. The URL would be https://www.facebook.com/pageid/posts/postid, or https://www.facebook.com/123456789012345/posts/123456789012345.
Check your URL in Facebook's Debug Tool and this will show the tags Facebook is detecting on your page -in particular check your og:url tag isn't ommitting the URL parameters