Open link to Facebook page from iOS app

前端 未结 8 1104
孤独总比滥情好
孤独总比滥情好 2020-11-30 18:29

I want to redirect user to my App\'s Facebook page, so I have the following code:

[[UIApplication sharedApplication] openURL:
    [NSURL URLWithString: @\"ht         


        
8条回答
  •  -上瘾入骨i
    2020-11-30 19:08

    For iOS 9, You must whitelist the url's that your app will call out to using the LSApplicationQueriesSchemes key in your Info.plist.

    Check here.

    LSApplicationQueriesSchemes
        
         fb
         fbapi
         fbauth2
         fbshareextension
         fb-messenger-api
         twitter
         whatsapp
         wechat
         line
         instagram
         kakaotalk
         mqq
         vk
         comgooglemaps
        
    

提交回复
热议问题