开发者

Access Facebook UserId in Facebook Canvas before OAuth Authentification

开发者 https://www.devze.com 2023-01-14 14:52 出处:网络
In my facebook canvas applikation, i store the access token in session. (I use ASP.NET MVC) But i want to store the access token in a database along with the facebook user id that i can save differen

In my facebook canvas applikation, i store the access token in session. (I use ASP.NET MVC)

But i want to store the access token in a database along with the facebook user id that i can save different access tokens for different facebook users accessing my application.

So when i query the facebook user id and if it doen't return any access token, i request permissions and get the access token for that user.

How do i access the Facebook UserID for the user accessing my canvas application before d开发者_开发知识库oing any authentification?


You can't access FB user id if the user doesn't grant access. Imagine that it is allowed without permission, you can access basic information about the user, and that makes the permission meaningless.

0

精彩评论

暂无评论...
验证码 换一张
取 消