An open API service indexing awesome lists of open source software.

https://github.com/wyanassert/socialnetworksharemanager


https://github.com/wyanassert/socialnetworksharemanager

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

###SocialNetworkShareManager
## Share Image to SocialWork such as Instagram, FB, Twitter...

1. add Scheme, Instagram, fb, fbauth...
2. NSPhotoLibraryUsageDescription in Info.plist

3. facebbook config
```
在 Xcode 中,使用辅键点击项目的 .plist 文件并选择 Open As(打开方式)-> Source Code(源代码)。
将以下 XML 代码片段插入文件正文,位于最后的 元素前。

CFBundleURLTypes


CFBundleURLSchemes

fb{your-app-id}



FacebookAppID
{your-app-id}
FacebookDisplayName
{your-app-name}
LSApplicationQueriesSchemes

fbapi
fb-messenger-api
fbauth2
fbshareextension

NSPhotoLibraryUsageDescription
{human-readable reason for photo access}
将 fb{your-app-id} 替换为 Facebook 应用编号,加上前缀 fb。例如,fb123456。您可以通过 Facebook 应用面板找到应用编号。
使用应用编号替换 {your-app-id}。
使用您在应用面板中指定的显示名称替换 {your-app-name}。
将 {human-readable reason for photo access} 替换为您的应用需要获取照片访问权限的理由
```

4. add framework
```
Photos.framework
Social.framework
```