I am using the facebook sdk version 2.0 in my iOS application to post on facebook.
I am able to post on facebook when facebook app is NOT installed on the device . However I am unable to post when facebook app is installed .
Kindly help since it is a very crucial module in my application.
I found the solution
The delegate method in Facebook.m
contains a Bool didOpenOtherApp which indicates whether the facebook app should be opened or not
didOpenOtherApp = [[UIApplication sharedApplication] openURL:[NSURL URLWithString:fbAppUrl]];
if false , the facebook api will always open inside your application. I have commented the code so that the bool will always have value false
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.