Sync Facebook user friends birthdays to my xcode application

自古美人都是妖i 提交于 2020-01-26 02:54:06

问题


Lot of confusion understanding when I googled and studied tutorials like Getting Started with the Facebook SDK for iOS ,Legacy iOS Tutorial etc.I have downloaded the FacebookSDK-3.0 as I use Xcode version of 4.2,added the sdk framework to my xcode project,then followed every step of integrating Facebook sdk in to iphone application like Facebook app id,modifying plist file,adding other linker flag etc. strictly following this link.I have included the "friends_about_me,friends_birthday" permissions to my application as shown in the below screen shot:

EDIT

I have already implemented the login part successfully

But my requirement is fetching user's friends birthdays and I have a 'Facebook Sync' button for that.Now I have searched for resources meeting/similar to my requirement.But I ran in to errors implementing the answers(sample code) suggested by assisters in posts.A sample question can be glanced here

ERROR SCREEN SHOTS:

Where am I wrong?

Can any one please guide me,any help is greatly appreciated!

Thanks all in advance :)


回答1:


Look at your own screenshot of the app settings, please:

“Use these settings to enter the set of permissions your app requires when displayed in App Center”

Is that the case, is the app displayed in Facebook app center on facebook.com when you see this error happening? No?

Also a billion dollar question that arose in my brain was 'Do we need to implement a user login code,does it not automatically redirect the user to login page if not already logged in'?

Of course you have to implement login into your app yourself.

I don’t know what you’ve read where, but please stick to the official documentation: https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/



来源:https://stackoverflow.com/questions/15248615/sync-facebook-user-friends-birthdays-to-my-xcode-application

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