https://github.com/wyanassert/socialnetworksharemanager
https://github.com/wyanassert/socialnetworksharemanager
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wyanassert/socialnetworksharemanager
- Owner: wyanassert
- License: mit
- Created: 2017-05-09T10:13:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T03:02:18.000Z (about 9 years ago)
- Last Synced: 2025-01-11T04:44:08.321Z (over 1 year ago)
- Language: Objective-C
- Size: 12.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```