[英]get user's create events from facebook by user id using graph api
I've developed an mvc 5 based application. 我已经开发了基于mvc 5的应用程序。 What i actually need if i am a normal facebook user and i created some events on my facebook after i login on my developed website then i want that events to display on my website. 如果我是普通的Facebook用户,并且在登录开发的网站后在我的Facebook上创建了一些事件,那么我实际上需要什么,那么我希望这些事件在我的网站上显示。 I set the user_events permission and i get my access_token as my code is below. 我设置了user_events权限,并获得了我的access_token,因为我的代码如下。
var client = new Facebook.FacebookClient(accessToken);
dynamic facebookEvents = client.Get("/v2.8/me/events/created");
but this is only returns owners created events if my appid and my app_secret then it's returning only my created events not returning other users events who's login with facebook on my website. 但这仅在我的appid和app_secret返回所有者创建的事件时,才返回我创建的事件,而不返回其他用户在我的网站上用facebook登录的事件。
If you want to return the events of other users, you have to authorize them with user_events
too, and use THEIR user access token with that API call. 如果要返回其他用户的事件,则也必须使用user_events
进行授权,并在该API调用中使用THEIR用户访问令牌。
Make sure you know "Login Review" too, most permissions don´t just work for every user without approval: https://developers.facebook.com/docs/facebook-login/review 确保您也知道“登录评论”,大多数权限不会仅对每个用户有效,而无需批准: https : //developers.facebook.com/docs/facebook-login/review
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.