I have an application that publish an open graph action (news.reads).
When someone who doesn't have the app installed click on the icon it should open the Auth Dialog.
Instead I have two scenarios:
Into the timeline nothing happens, or a loading popup is showed. The auth dialog never appears and the user is not redirected to the article too.
Into the ticker the user receives an error message:
API Error Code: 100
API Error Description: Invalid parameter Error
Message: redirect_uri URL is not properly formatted
example of url with error: https://www.facebook.com/connect/uiserver.php?app_id=289255557788943&method=permissions.request&redirect_uri=%2Fconnect%2Fuiserver.php%3Fapp_id%3D289255557788943%26method%3Dpermissions.request%26redirect_uri%3Dhttp%253A%252F%252Fg1.globo.com%252Fplaneta-bizarro%252Fnoticia%252F2012%252F03%252Fbritanicos-faturam-mais-de-r-85-mil-vendendo-anuncios-em-seus-rostos.html%253Ffb_action_ids%253D372579739430867%2526fb_action_types%253Dnews.reads%2526fb_source%253Dother_multiline%26response_type%3Dcode%26display%3Dasync%26perms%3Doffline_access%252Cemail%252Cpublish_actions%252Cuser_birthday%252Cuser_religion_politics%252Cuser_relationships%252Cuser_hometown%252Cuser_likes%26auth_referral%3D1&response_type=code&display=async&perms=offline_access%2Cemail%2Cpublish_actions%2Cuser_birthday%2Cuser_religion_politics%2Cuser_relationships%2Cuser_hometown%2Cuser_likes&auth_referral=1
If the user access the canvas page of the app directly the auth dialog appears correctly.
Anyone can help?
Please test that you see the same functionality on www.beta.facebook.com - if you so, file a bug at developers.facebook.com/bugs
Related
I'm following the tutorial for Publishing using the Share Dialog on the Custom Stories in iOS section.
https://developers.facebook.com/docs/ios/open-graph
When I want it too, it switches to the Facebook App, the Graph Object is presented to the user (image, title etc) for a few seconds and then disappears and Post button greys out. If I tap the Post button before it greys out, I get an error message logged:
Error publishing story: Error Domain=com.facebook.Facebook.platform Code=102
"The operation couldn’t be completed. (com.facebook.Facebook.platform error 102.)"
UserInfo=0x16d48640 {error_code=102, app_id=1435110413425124,
error_message=An error occurred during publishing.}
FYI, the standard share dialogue presentShareDialogWithLink:handler: is working fine and letting me post - it's just when I present one with a Graph Object attached to it.
I would post sample code, but it'm using the same code that's in the tutorial above. Besides, I'm pretty sure this is to do with settings in the App Dashboard, not the code I'm writing.
Per this question on Stack Overflow Facebook SDK - iOS - Fail to share URL (Error 102), I've confirmed that:
My App's Settings are set correctly in App Dashboard (including iPhone Store ID and Bundle ID)
By info.plist file is configured correctly.
This question facebook error code 102 with sdk 3.6 suggested using a real Facebook user who was an administrator of the app. I tried that, but the problem still occurred for me.
I also tried it with the App published, and with it unpublished and there was no difference.
I'm wondering if anyone else has any ideas for things I haven't checked yet?
I'm a numpty.
Despite the fact I said I'd checked the settings were correct in App Dashboard, I had misspelt the Namepsace.
If your Facebook app status is "development and unavailable to the public" will caused same result.
You may want to change it to public under "App Review" on the Facebook app menu. Or you need to login Facebook as role "Administrators", "Developers" or "Testers"
I am trying to add a Tab to a Facebook Fan Page.
I registered as a developer, and created an app.
In the upper part I filled out Display Name, Namespace, Contact Email and I selected Apps for Pages as my category.
In the integration part I selected the Page Tab section. Filled out the Page Tab Name, Page Tab URL, Secure Tab URL and selected a Page Tab Image.
Saved everything and noted the App-ID.
When I however logon to facebook using the fan-page-account and call up the URL https://www.facebook.com/dialog/pagetab?app_id=MY_APP_ID&next=www.facebook.com I constantly get an error stating: "An error occurred with DISPLAY_NAME_OF_MY_APP. Please try again later."
What am I doing wrong?
Thanks
It seems that Facebook has made another change and has not informed anyone. Below is a new link that appears to work. Just replace APP-ID with your application ID.
https://www.facebook.com/add.php?api_key={APP-ID}&pages=1
I'm aware this is a very frequently asked question but I'm really new to this whole app development thing.
I am the admin of a facebook page and I want to add a tab to the side of the page. So I followed facebook's instructions and created the page tab, but when I tried to access the "add to page" dialog box, I got API Error Code 191:
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
The URL I was using for the box to appear was: https://www.facebook.com/dialog/pagetab?app_id=317467938291427&display=popup&next=https://www.facebook.com/287sqnatc/contact
(The contact at the end is the URL for the app I wish to add.)
Where have I gone wrong, and can someone explain it in simple 5-year-old terms?
next (or redirect_uri) parameter you pass to Add Page Tab Dialog should contain either URL owned by your application or special URL https://www.facebook.com/connect/login_success.html (intended to be used in desktop applications).
You can use FB.ui method of JS-SDK with method pagetab as shown in example of Add Page Tab Dialog documentation this will automatically provide redirect_uri for dialog and allow user to add page tab without leaving your application.
The following code generates a link that when clicked will popup a facebook dialog, and once the user authenticates to facebook, they can share to their wall.
<a href="http://www.facebook.com/dialog/feed?app_id=<APP_ID>&message=<MESSAGE>&caption= <CAPTION>&link=<LINK>&display=popup&redirect_uri=<REDIRECT>" class="share-icon facebook popup" rel='Share via Facebook'></a>
I would like for the same dialog to be generated within my page using an iframe. I attempted to load it like this:
<iframe src="http://www.facebook.com/dialog/feed?app_id=<APP_ID>&message=<MESSAGE>&display=iframe&access_token=ACCESS_TOKEN&redirect_uri=<REDIRECT>&show_error=true&caption=<CAPTION>&link=<LINK>"/>
The popup works fine. But, when I try the Iframe, it loads the following error:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
Which of course seems wrong, because it's the same redirect_uri in both links.
The end result I want, is the share to be in page, and not be a popup. Any suggestions?
In the app settings (specifically Settings -> Basic -> Basic Info), is the domain of the redirect_uri specified in the "App Domain" field? In general, I get that error when I fail to do that.
(And as to why that might be happening, Facebook treats iframes much more strictly than new windows.)
I have a strange problem with my basic Facebook app.
I followed the below URL to develop basics of my app.
http://vivekcek.wordpress.com/2011/05/21/facebook-application-development-using-asp-net-and-facebooktoolkit-version-3-0/
The first time it is showing the data (user name and uid). But when I refresh the page, it is giving me some exception and goes to error page.
Exception type: FacebookException
Exception message: Invalid parameter
Do you have any clue about this issue?
How are you refreshing the page? Use Firebug or httpfox or something to see exaclty what parameters you are sending. If you are refreshing the browser window, you might not have the same params that you started with when you accessed the page directly.
Facebook sends POST variables to your iframe when it is loaded. Sometimes a browser doesn't properly send those variables when you do a simple refresh, often it is best to navigate to the same url, doing something like:
top.location.href = ___current_url___;