0
https://m.facebook.com/dialog/oauth?type=user_agent&scope=publish_stream&client_id=%24FBAPPID&local_client_id=%24SUFFIX&redirect_uri=fb%24FBAPPID%24SUFFIX%3A%2F%2Fauthorize&sdk=ios&display=touch通HandleOpenURL爲Facebook網址
- (BOOL)handleOpenURL:(NSURL*)url {
return [facebook handleOpenURL:url];
}
我從其他類
-(void)callMethod{
BOOL bool;
NSURL *testURL = [NSURL URLWithString:@"https://m.facebook.com/dialog/permissions.request?_path=permissions.request&app_id=254225037982009&client_id=254225037982009&redirect_uri=fb254225037982009%3A%2F%2Fauthorize&sdk=ios&display=touch&type=user_agent&perms=user_birthday%2Cemail&fbconnect=1&sso=iphone-safari&from_login=1&refid=9&_rdr"];
bool = [testComponent handleOpenURL:testURL];
if(bool == YES){
NSLOG(@"Return YES");
}
}
我猜測它需要返回YES調用此方法。但它返回NO。 任何人可以通知我什麼時候返回YES。 @All
在此先感謝
回報如果URL以'fb [app_id]://授權並因此被處理,則爲YES。我給了fb134235034985021://授權//m.facebook.com/dialog/oauth?type=user_agent&scope=publish_stream&client_id=%24FBAPPID&local_client_id=%24SUFFIX&redirect_uri=fb%24FBAPPID%24SUFFIX%3A%2F%2Fauthorize&sdk=ios&display=touch – kiran 2013-02-24 00:43:13