【发布时间】:2010-08-31 10:56:39
【问题描述】:
我尝试将电子邮件地址、电话号码从 Facebook 个人资料详细信息读取到我的 iPhone 应用程序。但是,从我的 Facebook 个人资料中,我得到了姓名详细信息、位置详细信息等。但我无法获得电子邮件和电话号码。
在我的程序中,首先我使用 Oauth 进行身份验证。我得到了所有的认证。使用以下代码。
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(fbGraphCallback:) andExtendedPermissions:@"ads_management,xmpp_login,read_stream,read_requests,read_mailbox,read_insights,read_friendlists,email,user_work_history,user_website,user_videos,user_status,user_religion_politics,user_relationships,user_photo_video_tag user_online_presence,user_notes,user_location,user_likes,user_interests,user_hometown,user_groups,user_events,user_education_history,user_activities,user_about_me,user_birthday,user_photos,user_videos,publish_stream,offline_access,user_checkins,friends_checkins"];
但我无法读取电话号码和电子邮件地址。
我使用以下代码读取配置文件:
fb_graph_response = [fbGraph doGraphGet:@"me" withGetVars:nil];
这取决于以下 URL:http://developers.facebook.com/docs/api。
我的个人资料输出是:
{"id":"1335802454","name":"Vel Murugan","first_name":"Vel","last_name":"Murugan","link":"http://www.facebook. com/profile.php?id=1335802454","about":"做最好的还是做最好的","birthday":"05/12/1984","hometown":{"id":106076206097781," name":"印度马杜赖"},"location":{"id":106076206097781,"name":"印度马杜赖"},"bio":"Hi","quotes":"你叫什么名字? ","work":[{"employer":{"id":114941651860886,"name":"yes"},"location":{"id":106076206097781,"name":"印度马杜赖"}, "position":{"id":106134736085305,"name":"软件开发者"},"start_date":"2010-08","end_date":"0000-00","description":"IPHONE APPS DEVELOPER" }],"教育":[{"学校":{"id":110943172274244,"name":"MCA"},"year":{"id":133774113322262,"name":"2010"}}, {"学校":{"id":108627612500830,"name":"婆罗洲大学"},"浓度":[{"id":121317831214170,"name":"MCA"},{"id":137092149656664, "name":"Bsc maths"},{"id":151356271549645,"name":"+2"}]}],"gender":"male","relationship_status":"Single","religion": “不”,“政治” l":"NO","email":"apps+123145257717248.1335802454.e466b769c10a7745bcb11201de2aae7d@proxymail.facebook.com","website":"http://www.kailasanadhiswarar.org/","timezone":5.5,"locale ":"en_US","verified":true,"updated_time":"2010-08-30T18:28:54+0000"}
【问题讨论】:
标签: iphone