ios - Facebook App Invite not working -


i'm trying add facebook app invite this:

let content:fbsdkappinvitecontent = fbsdkappinvitecontent()         content.applinkurl = url(string: "https://fb.me/...")         content.appinvitepreviewimageurl = url(string: "http://...")          let dialog = fbsdkappinvitedialog()         dialog.content = content         dialog.delegate = self         dialog.fromviewcontroller = self         dialog.show() 

relevant info.plist keys:

<key>facebookappid</key> <string>...</string> <key>facebookdisplayname</key> <string>blanket</string> <key>lsapplicationqueriesschemes</key> <array>     <string>fbapi</string>     <string>fbapi20130214</string>     <string>fbapi20130410</string>     <string>fbapi20130702</string>     <string>fbapi20131010</string>     <string>fbapi20131219</string>     <string>fbapi20140410</string>     <string>fbapi20140116</string>     <string>fbapi20150313</string>     <string>fbapi20150629</string>     <string>fbapi20160328</string>     <string>fbauth</string>     <string>fbauth2</string>     <string>fb-messenger-api20140430</string>     <string>fb-messenger-platform-20150128</string>     <string>fb-messenger-platform-20150218</string>     <string>fb-messenger-platform-20150305</string>     <string>fbapi</string>     <string>fb-messenger-api</string>     <string>fbauth2</string>     <string>fbshareextension</string> </array>  <key>cfbundleurltypes</key> <array>     <dict>         <key>cfbundleurlname</key>         <string>com.my.app</string>         <key>cfbundleurlschemes</key>         <array>             <string>fb...</string>             <string>myappscheme</string>         </array>     </dict> </array> 

when run code, safari window opened, , closed after showing loading spinner.

this error returned:

"error: optional(error domain=com.facebook.sdk.core code=2 \"(null)\" userinfo={com.facebook.sdk:fbsdkerrordevelopermessagekey=invalid method_results., com.facebook.sdk:fbsdkerrorargumentnamekey=method_results})"

facebook app installed on device, , share dialog opens in facebook app.

when try debug, in [fbsdkapplicationdelegate _handlebridgeapiresponseurl:sourceapplication:] response url fb...://bridge/appinvites?version=web&bridge_args=%7b%22app_name%22%3a%22...%22%2c%22action_id%22%3a%...%22%7d&error=%7b%22error%22%3a%22server_error%22%2c%22error_description%22%3a%22error%20retrieving%20application%20configuration.%22%7d

relevant error:

{"error":"server_error","error_description":"error retrieving application configuration."} 

i'm not sure error means, facebook application config wrong, or ios application.

the same invite works on android, ios app published, , has valid itunes url configured.

i able invite friends based on above code please check facebook app id , see whether entered correctly. , see whether have provided correct url identifier , url scheme in p list.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -