Why I can't get targetURL for Facebook deep link on iOS? -


i'm having problems getting targeturl facebook open graph story deep link on ios.

i'm publishing test story this:

https://graph.facebook.com/me/myapp:checkin?method=post&access_token=caagy9...&meal=http%3a%2f%myapp.com%2f..&fb%3aexplicitly_shared=true

the response is:

{"id": "10100..."}

looking @ profile, story published correctly. following link goes in browser goes web page. works fine on android.

the first strange thing on ipad, [[call applinkdata] targeturl] null. not big problem because can use originalqueryparameters.

the big problem on iphone, applinkdata null, can't deep link.

what wrong? there possibly setting on phone? , why doesn't targeturl work on ipad?

both devices updated ios 7.1 , latest facebook app. i'm using latest ios sdk 3.13. i've tried older versions , have same problem. i've tried creating new action , story separate app , results same.

here's more strangeness. did clean restore of phone. downloaded facebook. ran app xcode. works. stop app. make no changes. run app xcode again. doesn't work anymore. nothing changed.

here's what's in appdelegate.m:

- (bool)application:(uiapplication *)application             openurl:(nsurl *)url   sourceapplication:(nsstring *)sourceapplication          annotation:(id)annotation {     bool washandled = [fbappcall handleopenurl:url                              sourceapplication:sourceapplication                                fallbackhandler:^(fbappcall *call) {                                    nslog(@"%@",call);                                    nslog(@"%@",[call applinkdata]);                                    nslog(@"%@",[[call applinkdata] targeturl]);                                    nslog(@"%@",[[call applinkdata] originalqueryparameters]);                                }                        ];      return washandled; } 

this on ipad:

2014-03-12 13:49:03.081 myapp[191:60b] <fbappcall: 0x14e813d0, id: 196b6395-875c-4c66...  accesstoken: caagy9nn...  applinkdata: <fbapplinkdata: 0x14e80910  actiontypes: (     "myapp:checkin" )> > 2014-03-12 13:49:03.084 myapp[191:60b] <fbapplinkdata: 0x14e80910  actiontypes: (     "myapp:checkin" )> 2014-03-12 13:49:03.085 myapp[191:60b] (null) 2014-03-12 13:49:03.086 myapp[191:60b] {     "access_token" = caagy9nn..;     "action_object_map" = "[60768014...]";     "action_ref_map" = "[]";     "action_type_map" = "[\"myapp:checkin\"]";     "expires_in" = 3600;     "fb_action_types" = "myapp:checkin";     "fb_source" = "other_multiline";     "target_url" = "http://myapp.com/..."; } 

this on iphone:

2014-03-12 12:55:04.714 myapp[256:60b] <fbappcall: 0x15dc2e70, id: 3b25045e-e5f7...  accesstoken: caagy9nn.. > 2014-03-12 12:55:04.723 myapp[256:60b] (null) 2014-03-12 12:55:04.725 myapp[256:60b] (null) 2014-03-12 12:55:04.725 myapp[256:60b] (null) 

i think has account. on friend's phone account, works. on phone account, works. doesn't work account. maybe because i'm developer of app? also, exact same code works account on other apps. strange.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -