https://glacial-spire-4346.herokuapp.com/repeater.php?fb:app_id=431519396898110 &og:type=fb_sample_mani_test:meal &og:title=Pizza &og:description="Pizza" &og:image=http://www.sugarmedia.com/nyccookbook/images/pizza.jpg &body=Pizza
When I used this URL in the facebook debugger an error was shown as to "og:url" property is needed. Also an error was shown when using the url in Graph API explore.
But as soon as I removed the words "repeater.php" from the url everything worked fine. FB debugger gave no error n I was able to publish using the graph API.
Any reason as to why this is happening?
PS: This is the sample code from developer.Facebook.com n uses "repeater.php"
Related
I'm creating comments to a post on FB page using Graph API /{comment-id}/comments edge. Everything works like a charm but when I'm trying to send a comment with mention as stated here nothing happens. I'm sending
some-irrelevant-text #[valid-user-id]
and what I get is nothing. To be more exact I get some-irrelevant-text but #[valid-user-id] is doing exactly nothing. Blank space
I'm using graph api v3.1
I'm just trying to use standard link sharing using Facebook's sharer.php url. Here is a sample link:
https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fbsfurl.com%2FhTM9%2F2%2F2&t=Welcome!
I've been doing this successfully since 2009. Recently the Facebook sharer page seems to no longer be able to access my link to pull in images and a description. Using the Facebook Object debugger,
https://developers.facebook.com/tools/debug/og/
I see that every URL that i try returns a HTTP 502 error. Can someone help me understand why this is happening? Even a static HTML page returns this same error. Here is a screenshot of the error: http://images.publicaster.com/ImageLibrary/account116/images/facebookscrapeerror.png
Testing the URL in a browser works fine: http://stagingclick.publicaster.com/test.htm. this is just a static link no dynamic content, no redirects nothing. I'm a little at a loss of what i can do to fix this error. In my IIS logs i am not able to see the incoming request from Facebook's scraper.
Thanks!
-mark
The page you linked (http://stagingclick.publicaster.com/test.htm) is redirected (via the og:url tag) to http://www.nin.ja which doesn't resolve - are you sure there isn't a similar problem with the live links you're sharing?
I can't seem to get the Facebook Graph API to work in IE7, IE8, and Opera while it is working fine in FF3.6, FF8, IE9, and Chrome.
I am following the Client-side Flow from the Facebook authentication docs.
I have a Facebook Connect link and when the user clicks on it the page is directed to:
https://www.facebook.com/dialog/client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&response_type=token
The user logs in and authorizes the app if needed.
The redirect_uri page gets the access_token back just fine. I then try to do an ajax get for https://graph.facebook.com/me to just return the public data (I need name and id).
The request does not succeed.
Doing some research and finding this stackoverflow post I tried changing the ajax response type to 'text/javascript' (also tried several others). Same issues occurs.
Removing ajax from the equation I try to hit the API directly with the browser (not logged into Facebook and without an access_token) like this example from Facebook Graph API Reference page.
https://graph.facebook.com/btaylor
I can view it fine in FF. I can download and then view it fine with IE9. I get this error in IE8:
Unable to download btaylor/ from graph.facebook.com.
Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
While searching for answers I found this stackoverflow post, and sure enough Facebook's Graph API Explorer does not work in IE8.
I can't find much else on this topic which seems to say I am doing something horribly wrong. Or have developers given up on IE < 9?
A straight up GET request doesn't work in IE 8 because IE 8 can't understand the JSON format that the data is coming back in and so it crashes. For the AJAX response, you should set the AJAX reponse to application/json, not text/javascript. Is there a reason you can't just use the Facebook JS SDK? For example:
FB.init({ // options });
FB.api('/me', function(response)
{
// do stuff
});
I'm not actually sure why the Graph API explorer isn't working in IE 8, but for me, the explorer throws Javascript errors but doesn't crash the browser, while loading a Graph response via a GET results in a browser crash.
I think this is most likely just a typo on your part for the question, but the correct Facebook authorization URL is:
https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&response_type=token
Other than that, I really can't see anything else that you are doing wrong. Looks like IE8 is on its way out.
Example url:
http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan&src=sp
That's what's generated by the Share JS. If you visit the link (after decoding):
[...].com/2011/09/2124/rugby-world-cup-daily-tonga-beat-japan
You can view source and see open graph meta tags.
If the share url is changed to:
[...].com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan2&src=sp
(Adding a 2 to the end of the url) the result is fine. Likewise with other posts:
http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2119%2Frugby-world-cup-daily-christchurch-revisted&src=sp
So all I'm getting is "Error" with no way of knowing what went wrong.
Any insight would be great. A thought was that the url was flagged or banned by FB but no way to tell.
[...] is used cause I can't use more than 2 urls.
I re-linted your URL in the Facebook developer debug page:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan%2F
and it appears to work fine now. Facebook caches the data obtained from a page, so it's likely they hit your page during a period in which it had an error message instead of the usual contents.
I'm doing a facebook application for (WAP based)mobile browser. I need to show the post dialog. When i use the following code for wall post it show error.
http://m.facebook.com/dialog/feed?app_id='.$app_id.'&redirect_uri=$redirect_url&display=wap
The error is:
API ERROR CODE:3
API Error Description: Unknown Method
Error Message: This method isn't supported for this display type
While I give display type as 'touch' in the above mentioned URL it works fine in the touch devices. But no form displayed in the wap browser.
That's strange, because their documentation does mention that is the method to do it: http://developers.facebook.com/docs/reference/dialogs/
I notice an error in your PHP though (unclosed apostrophe):
It should be:
'http://m.facebook.com/dialog/feed?app_id='.$app_id.'&redirect_uri='.$redirect_url.'&display=wap'
Here is a similar issue on https://github.com/facebook/facebook-android-sdk/issues/177
Also, check out facebook's bug tracker: http://bugs.developers.facebook.net and perhaps file your bug there and then link to it from here.