ios - URL scheme handler error while integrating Facebook messenger API -


while think i've added , set facebookmessengersdk correctly keep getting error when click share button, @ moment present messenger, doesn't yet.

launchservices: error: there no registered handler url scheme fb-messenger-

here part of plist source code facebook developer website told me include.

<key>cfbundleurltypes</key> <array>     <dict>         <key>cfbundleurlschemes</key>         <array>             <string><removedforsecuritypurposes></string>         </array>     </dict> </array> <key>facebookappid</key> <string><removedforsecuritypurposes></string> <key>facebookdisplayname</key> <string><fbappnamehere></string> <key>nsapptransportsecurity</key> <dict>     <key>nsexceptiondomains</key>     <dict>         <key>facebook.com</key>         <dict>             <key>nsincludessubdomains</key>             <true/>             <key>nsthirdpartyexceptionrequiresforwardsecrecy</key>             <false/>         </dict>         <key>fbcdn.net</key>         <dict>             <key>nsincludessubdomains</key>             <true/>             <key>nsthirdpartyexceptionrequiresforwardsecrecy</key>             <false/>         </dict>         <key>akamaihd.net</key>         <dict>             <key>nsincludessubdomains</key>             <true/>             <key>nsthirdpartyexceptionrequiresforwardsecrecy</key>             <false/>         </dict>     </dict> </dict> <key>lsapplicationqueriesschemes</key> <array>     <string>fbapi</string>     <string>fb-messenger-api</string>     <string>fbauth2</string>     <string>fbshareextension</string> </array> 

here app delegate

import uikit import fbsdkcorekit import fbsdkmessengersharekit

@uiapplicationmain class appdelegate: uiresponder, uiapplicationdelegate, fbsdkmessengerurlhandlerdelegate {

var window: uiwindow? var composercontext = fbsdkmessengerurlhandleropenfromcomposercontext() var replycontext = fbsdkmessengerurlhandlerreplycontext()   func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool {      fbsdkapplicationdelegate.sharedinstance().application(application, didfinishlaunchingwithoptions: launchoptions)      let messengerurlhandler = fbsdkmessengerurlhandler()     messengerurlhandler.delegate = self      return true }  //other stuff here removed  func applicationdidbecomeactive(application: uiapplication) {      fbsdkappevents.activateapp() }  func application(application: uiapplication, openurl url: nsurl, sourceapplication: string?, annotation: anyobject) -> bool {      let urlhandler = fbsdkmessengerurlhandler()      if urlhandler.canopenurl(url, sourceapplication: sourceapplication) {          urlhandler.openurl(url, sourceapplication: sourceapplication)     }      return fbsdkapplicationdelegate.sharedinstance().application(application, openurl: url, sourceapplication: sourceapplication, annotation: annotation) }  //messenger  func messengerurlhandler(messengerurlhandler: fbsdkmessengerurlhandler!, didhandleopenfromcomposerwithcontext context: fbsdkmessengerurlhandleropenfromcomposercontext!) {      composercontext = context  }  func messengerurlhandler(messengerurlhandler: fbsdkmessengerurlhandler!, didhandlereplywithcontext context: fbsdkmessengerurlhandlerreplycontext!) {      replycontext = context  }   } 

any help? thank you!


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -