Facebook oauth cancel - facebook

I have an application that goes through the facebook oauth process, but when I select "cancel" during the process is takes me to an invalid URL
"www.mydomain.com/app/connect/facebook?error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied#_=_"
Can this be fixed on facebooks side or do I have to add code to handle this?
What is the most efficient way to fix this problem?

See the bottom of the paragraph "Cancelled login" of https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/#login to check for details...

Related

Browser blocks popup

I have a page where there is a textbox for status to type. When I click on the button "Update" I need that status to be updated in "Facebook" and "Twitter" in sequencial order. Also we need to check if the user is logged in with "Facebook" and "Twitter" or not
Currently what I am facing problem is my browser allows "Facebook" popup for authentication and post the status. But when the time comes for the twitter authentication, it is being blocked by browser. Is there any way to show both of the popup appear sequentially.
IF the browswer is allowing for facebook popup to appear and not twitter there are two possible issues,
That the issue already existed for facebook at one point and you clicked always allow from facebook in regards to popups.
How the "popup" is generated, as you have no code I cannot guess as to what you have done to generate such a "popup" but my guess is no, if you are literally opening a new window or "popup" and the clients browser settings are to deny that action, your pretty much out of luck.
Again I cannot further diagnose you problem without any code

Send button returning error codes, like button works fine

I have a like/send button that I've set up on a customer's home page. I have it pointed at their facebook profile page so that when people like them either from facebook or on their homepage, it's always liking the same thing.
Anyway, I've used the fb social plugins page to create the fbxml, and I'm having a problem with the send button. The like button works wonderfully, but the send button doesn't want to cooperate.
First, I had the button set up using "http://www.facebook.com/AFEDEWA" as the link to like/send. However, with the button(s) configured that way, when you click on Send you get an error message that says "The page at ttp://www.facebook.com/AFEDEWA could not be reached because the server returned status code 200."
So I did some digging on the 'net, and found some info that seemed to indicate that maybe the send button didn't like the alias / page name. I tried putting in the page id instead, and when I do that I get a different error: "The page at ttp://www.facebook.com/profile.php?id=165721903513327 could not be reached."
(I removed the h in the front of the links in those messages because the board was complaining about too many links. But the actual error message has the http in full :) )
The link works either way if you c/p into your browser, and also works fine with the like button. It would appear that the send button has some issues? Maybe needs to handle redirects instead of returning a 200 OK message.... ?
Any thoughts would be greatly appreciated. If you want to see the like/send button in action, this is the website it's set up on: http://www.coolersecurityadvisors.com
thx!
After checking the buttons on the upper right, I found an issue. It seems like you can not Like/Send URL's of real Facebook Pages using the Like/Send button. Facebooks URL debugger always comes up with the error "Facebook can not crawl itself".
If you just want that people share a link to your Facebook Page, simply create a file on your server, implement the OpenGraph Tags you want to show up on Facebook (title, image, etc.) and output this in case the Facebook crawler is visiting this site, if it's not the Facebook crawler, redirect the user to https://www.facebook.com/AFEDEWA
Fix up the 8 warnings from https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.coolersecurityadvisors.com%2F and I think that might help solve the problem.

Login and Cancel at Auth Dialog

So I have a facebook canvas page that holds some info and buttons http://www.facebook.com/theminespress?sk=app_289102104446763.
First Question is...
When the user clicks on the app link they are taken to a log in page:
http://www.facebook.com/connect/uiserver.php?app_id=287405277948067&method=permissions.request&redirect_uri=http%3A%2F%2Fapps.facebook.com%2Fchocolate_sender%2F&response_type=none&display=page&perms=publish_stream&auth_referral=1
Even though they are already logged in? How do I just get them straight to the auth dialog for extended permissions?
Secondly if the user selects "Don't Allow" on the extended permissions screen they are still taken into the app? I'm not seeing it go to:
http://YOUR_URL?error_reason=user_denied&
error=access_denied&error_description=The+user+denied+your+request
As described in (http://developers.facebook.com/docs/authentication/).
What am I doing wrong? Please Help.
You need to override the facebook's default action. See my answer to this post for sample code http://facebook.stackoverflow.com/questions/7886134/facebook-requests-2-0-how-to-change-accept-button-url-to-be-a-url-outside-of/7987489#7987489 - do follow the link to the facebook's help page.

FB Canvas authorization redirection is kicking me out of FB

I have a Canvas application that allows the user to first see what it's all about, and then asks for permissions only if he wishes to perform certain actions.
When the user enters the application it starts without requiring permissions. We provide a "Login" link which will make a request to
https://www.facebook.com/dialog/oauth/authorize?client_id=XXX&redirect_uri=http://myapp.com&scope=publish_stream
This causes the Facebook logo to appear with a link that says "Go To Facebook.com". I understand that there are cross-frame problems that causes this, and can be fixed by simply putting target=_top onto the link (or playing around with Javascript). For now, I want to keep things simple so I don't use this. I do notice that this is in a iframe_canvas which is good, so I click on that link and get to "Request for Permission" which takes over the screen (didn't this use to be a popup?) and the iframe_canvas seems to have gone away, and I now have UIFullPage_Container.
I click Allow and Facebook redirects the browser to
http://myapp.com&code=XXXXXXX
This is bad because my "Canvas" application has broken out of the canvas and taken over the whole browser.
Is there something I'm doing wrong, or is this some type of Facebook bug? Do I simply redirect this back to http://apps.facebook.com/mycanvasapp, and if so is there some way to pass some parms?
Just redirect them to https://apps.facebook.com/yourcanvasapp/whateveryouwant?here=isokay. The part after yourcanvasapp/ is sent to your server. You'll get the signed_request as a post arg, and the other params and path in the query string.
In other words, if your secure canvas URL is https://myapp.com/fbapp/, and you send the user to https://apps.facebook.com/mycanvasapp/foo?bar=baz, Facebook will send a POST to https://myapp.com/fbapp/foo?bar=baz and signed_request in the POST-data.
Maybe I'm missing something here, but how is not using target=_top keeping things simpler? It is actually what Facebook is forcing you to do anyway by displaying the "Go to Facebook.com" link; it's implementing a top-level redirect because it's necessary for it to display the permissions dialog page. So why not just do it yourself and save the user a potentially confusing intermediate step?
As far as getting back into the iframe, it would probably be easier to use apps.facebook.com/yourapp/somepage as your redirect_uri and that way it will go directly back into "app" mode.

Facebook "Publish Story" dialog buttons are too far down

I have the following problem with my implementation of Facebook.
I want to publish a user story and everything works pretty well except sometimes the buttons
are placed too far down and you can't just scroll them up 'cause they always will pop back down there. I think you can see it best in the picture!
Its even worse in German...
Does anybody have the same problems? Or does anybody know why this could be?
Screenshot
Reduce the size of your content.Since this is a webview so it adjust the size as per your content.Decrease the size of your content and they were , on their right position.
Hope it helps you.....
Alright it is gone now!
There was a new update of the Facebook api and this problem went away after updating!
So like I thought it was a problem of the Facebook api!
I have narrowed it down somewhat:
feed dialog is scrambled only when called right after login dialog. In my case when user clicks post button I check if he is logged in, if yes then show post feed dialog, if not I show him login dialog then post feed dialog.
There is no need to do that because post feed dialog will force user to login when opening...
skipping this step with login solved this problem...