Can't auth to Facebook with iOS SDK and native Facebook application

前端 未结 3 453
迷失自我
迷失自我 2020-12-31 22:21

What I have and what\'re problems occurred:

  1. I\'ve one Facebook account with game application (every day people\'s playing)
  2. I\'ve one more Facebook acc
3条回答
  •  情深已故
    2020-12-31 23:19

    I solved the issue.

    Actually after changing here and there I found my bundle id was not matching. I have kept the bundle id same in the following 3 places and it worked:

    1. The bundle identifier of your project.
    2. In your FB a/c the filed named "iOS Bundle ID:" under head Native iOS App.
    3. The notification string value in your AppDelegate.m

      NSString *const FBSessionStateChangedNotification = @"yourbundleid:FBSessionStateChangedNotification";

提交回复
热议问题