0
votes
  1. When we run the code then the following error arrive
  2. Terminating app due to uncaught exception 'com.facebook.sdk:InvalidOperationException', reason: 'FBSession: No AppID provided; either pass an AppID to init, or add a string valued key with the appropriate id named FacebookAppID to the bundle *.plist'
2

2 Answers

0
votes

try this

- (id)initWithAppId:(NSString *)app_id
    andDelegate:(id<FBSessionDelegate>)delegate;

use this link use this link

0
votes

You're missing FacebookAppID here, add your Id as mentioned in screenshot:

enter image description here