Quantcast
Viewing all articles
Browse latest Browse all 28

iOS SDK: Feed Dialog without authorize gets send to facebook home page

I ran into an interesting bug and just want to know if anyone did experience the same problem (since I couldn't find anything about it after 2h of google):

I initalize the facebook SDK (newest Version 23. Sept 2011) like this:

facebook = [[Facebook alloc] initWithAppId:FACEBOOK_APP_ID andDelegate:self];

Afterwards, I want to send some information to the users Wall without the authorization dialog:

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
     FACEBOOK_APP_ID, @"app_id",
     @"http://itunes.apple.com/de/app/idxyz", @"link",
     @"http://example.com/app_icon90px_d_p_i_g.png", @"picture",
     @"AppName", @"name",
     @"awesome new App. Look at it. Yadda Yadda Yadda", @"caption",
     @"Here's an even more interesting description", @"description",
     nil];

[facebook dialog:@"feed"
        andParams:params
      andDelegate:self];    

What happens: The Facebook dialog opens and asks for the user email and password. Cool, everythings fine till yet. But if I provide the system with my email and password it doesn't change back to the post-to-wall dialog but instead shows the facebook user/home page. If you abort the dialog now and recall the method above, it goes directly to the feed-dialoge. The workaround to authenticate the app with facebook first is no solution :-(


Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>