Url Facebook Login
This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.
Join Stack Overflow to learn, share knowledge, and build your career.
I am developing a Facebook canvas appliaction, and I am trying to do the following, which is standard in many applications.
User arrives on my application page.
If he has not granted the necessary permissions, he is redirected to a page where he can (optionally authenticate) and accept the permissions, and
finally redirected back to my facebook application page.
As far as I understand, this is achieved by redirecting the user to the OAuth dialog, onhttp://www.facebook.com/dialog/oauth/? scope=PERMISSIONS& client_id=CLIENT_ID& redirect_uri=MY_CANVAS_URL& response_type=token
The problem is that Facebook will not allow a redirect from inside an iframe, for security reasons. It only allows redirects to what I declare as site URL on the application settings page. In my case I have set that to the URL of the application on Facebook, since that is what I put as redirect_uri (and it works).
What is the correct way to obtain this flow?
Join Stack Overflow to learn, share knowledge, and build your career.
I am developing a Facebook canvas appliaction, and I am trying to do the following, which is standard in many applications.
User arrives on my application page.
If he has not granted the necessary permissions, he is redirected to a page where he can (optionally authenticate) and accept the permissions, and
finally redirected back to my facebook application page.
As far as I understand, this is achieved by redirecting the user to the OAuth dialog, onhttp://www.facebook.com/dialog/oauth/? scope=PERMISSIONS& client_id=CLIENT_ID& redirect_uri=MY_CANVAS_URL& response_type=token
The problem is that Facebook will not allow a redirect from inside an iframe, for security reasons. It only allows redirects to what I declare as site URL on the application settings page. In my case I have set that to the URL of the application on Facebook, since that is what I put as redirect_uri (and it works).
Related Posts:
- Deactivate Facebook Permanently
- Pinterest Login Free
- How to make a birthday video on Facebook
- The app that shows who Unfollows you on Instagram
- Facebook desktop Website
- Facebook app install free Download
- Delete Fb Account
- Can you see who's been looking at your Facebook Pa...
What is the correct way to obtain this flow?
0 comments:
Post a Comment
Facebook has greatly reduced the distribution of our stories in our readers' newsfeeds and is instead promoting mainstream media sources. When you share to your friends, however, you greatly help distribute our content. Please take a moment and consider sharing this article with your friends and family. Thank you.