SNSSocial 2.1.0

SNSSocial 2.1.0

测试已测试
语言语言 Obj-CObjective C
许可 自定义
发布最新发布2017年10月

Maintained by Guillaume Bonnin, Bill350.



SNSSocial 2.1.0

  • Smart&Soft

在iOS上简化社交网络管理。

2.X版本是用Objective-C编写的(但完全兼容Swift)。我们目前正在开发一个全Swift分支,预计会在3.0版本中提供。

规格说明

要求

  • 最低iOS版本要求:8.0
  • Swift或Objective-C项目
  • Xcode 8.1+

Facebook功能

  • 登录/登出,权限
  • 用户信息
  • Facebook帖子(消息、链接、图片)
  • 点赞
  • 我即将推出的新功能尚未提供

Twitter功能

  • 登录/登出
  • 用户信息(姓名、图片)
  • 推文(简单消息、图片、地理定位消息)
  • 我即将推出的新功能尚未提供

文档

SNSSocial 允许您使用类似的方法使用不同的社交网络(登录、分享)。
该库与Facebook和Twitter兼容。每个社交网络都是独立的。

查看GitHub Wiki以查看所有功能或只需查看完全注释的头部文件。

用法

准备您的Info.plist

Facebook

对于Facebook SDK,只需添加FacebookAppIDFacebookDisplayName

Twitter

对于Twitter SDK,只需添加TwitterAPIKeyTwitterAPISecretTwitterCallBackScheme

示例代码 - 在Facebook上分享链接

[SNSFacebookInteractions postLink:@"https://github.com/smartnsoft/SNSSocial"
                        withTitle:@"SNSSocial"
                      description:@"Discover SNSSocial, an iOS library to interact with social networks in your app!"
                       pictureUrl:nil
             	 parentController:self
                      completion:^(id result, NSError * error)
{
	if (error == nil)
    {
    	// Do something
    }
    else
    {
    	// Display error
    }
}];

示例代码 - 发布推文

[SNSTwitter postTweetWithMessage:@"Sample tweet with SNSSocial #iosdev"
        fromParentViewController:self
              		  completion:^(id result, NSError * error)
{
	if (error == nil)
    {
    	// Do something
    }
    else
    {
    	// Display error
    }
}];

通讯

SNSSocial是Smart&Soft库之一,专门用于iOS开发。
它由法国一家前沿的移动代理Smart&Soft开发和维护。

  • 如果您发现一个bug,请打开一个issueGitHub issue页面
  • 如果您有一个功能请求,请打开一个issue
  • 如果您想贡献,提交一个pull request

变更日志

变更日志可在专门的文件中查看。

许可

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.