facebook registration and authentication

狂风中的少年 提交于 2019-12-10 11:56:42

问题


i'm using the registration plugin for my website

http://developers.facebook.com/docs/plugins/registration

i want permission to post users's wall is there any way that on the same log in ( on the registration ) the user will promp to agree for the permissions (authentication)?

thanks !


回答1:


From the Facebook Developer Forum:

There is no way at the moment to requests extended permissions through the Registration Plugin so you'll need to request it afterwards.

It goes on to acknowledge that this is a missing feature that should be added at some point.

From what I can find, it looks like the legacy fb:prompt-permission tag would be a great way to ask the user to grant the permission. However, Facebook is in the process of deprecating FBML, so that's probably not a good idea.

The Facebook Authentication documentation explains how to gain the additional permissions using the latest OAuth model. I am still struggling to wrap my head around this myself.




回答2:


Since you're using Facebook registration I'm assuming you have a database that collects user info. So what you need to do is not rely on Facebook to see which user has registered with your website but instead use the simple login with permissions on first time users and then after they are "connected" to your website check to see if they are in your database or not, if not send them to the Facebook registration plugin page and force them to register. :)



来源:https://stackoverflow.com/questions/4915778/facebook-registration-and-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!