iOS 直播登入facebook

2021-07-11 07:33:32 字數 2768 閱讀 1389

1

先fq吧

傻瓜條款同意之類就跳過了

add the facebook sdk to your xcode project

from the facebook sdk folder, drag the folder

configure your info.plist  在plist檔案加一些東西

<

key>cfbundleurltypes

key>

<

array

>

<

dict

>

<

key>cfbundleurlschemes

key>

<

array

>

<

string

>fb592511104230426

string

>

array

>

dict

>

array

>

<

keykey

>

<

string

>592511104230426

string

>

<

key>facebookdisplayname

key>

<

string

>sgshop

string

>

如果你編譯你的應用程式與ios sdk 9.0或以上,你將受到應用程式傳輸安全性的影響  也是在plist新增吧

<

keykey

>

<

dict

>

<

key>n***ceptiondomains

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

>

如果你使用facebook的任何對話方塊(如。、登入、分享、應用邀請等),可以執行應用程式切換到facebook應用程式,應用程式的。plist還需要處理這個問題。加

去工程複製bundle id過來

7匯入sdk

#import

} didfinishlaunchingwithoptions:launchoptions];

return

yes;

} openurl:(nsurl *)url

annotation:(

id)annotation

這樣就實現了facebook的三方登入咯

Facebook 直播開發概述

api測試 官網建立直播 官網幫助中心 開發者中心 建立應用 圖譜 api 概覽 docs graph api overview 圖譜 api 的使用方法 docs graph api using graph api api列表 docs graph api reference 登入 docs fa...

facebook登入問題

facebook登入出現如下錯誤 protocol https not supported or disabled in libcurl 檢視php還支援curl,執行 whereis curl usr bin curl v 支援https 問題出 了,鬱悶了好幾天,最後檢視php的.config ...

Facebook授權登入

1.註冊開發者賬號 登陸facebook開發者平台 註冊facebook開發者賬號。2 facebook登入key hash配置 一般為 c openssl win32 bin 安裝過程中的每一步,都可以選擇預設選項。2.2 生成key hash值 注 as預設的debug簽名沒有金鑰口令,直接點選...