Facebook SDK: app not registered as a URL Scheme

后端 未结 10 1098
無奈伤痛
無奈伤痛 2020-11-30 22:41

I am using the Facebook SDK found here, and am trying the sample that is provided (in the folder FacebookiOSSample).

If I simply replace th

10条回答
  •  -上瘾入骨i
    2020-11-30 23:18

    For iOS 9

    If you have an error: 'LSApplicationQueriesSchemes'

    Based on Bear with me answer, you will also have to add those lines:

    LSApplicationQueriesSchemes
    
       fbauth2
    
    

    See this.

    You should end up with those lines at the end of your .plist files:

    CFBundleURLTypes
        
            
                CFBundleURLSchemes
                
                    fb2R3234544534554
                
            
        
        FacebookAppID
        2R3234544534554
        FacebookDisplayName
        stevejeff
        NSAppTransportSecurity
        
            NSExceptionDomains
            
                facebook.com
                
                    NSIncludesSubdomains
                    
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                
                fbcdn.net
                
                    NSIncludesSubdomains
                    
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                
                akamaihd.net
                
                    NSIncludesSubdomains
                    
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                
            
        
        LSApplicationQueriesSchemes
        
            fbauth2
        
        
        
    

    * If you're using v4.6.0 or higher of the SDK, you only need to add:* (Thanks mohsinj)

       LSApplicationQueriesSchemes
          
            fbapi
            fb-messenger-api
            fbauth2
            fbshareextension
       
    

提交回复
热议问题