{"action":"created","issue":{"url":"https://api.github.com/repos/xumeng/XMShareModule/issues/2","repository_url":"https://api.github.com/repos/xumeng/XMShareModule","labels_url":"https://api.github.com/repos/xumeng/XMShareModule/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/xumeng/XMShareModule/issues/2/comments","events_url":"https://api.github.com/repos/xumeng/XMShareModule/issues/2/events","html_url":"https://github.com/xumeng/XMShareModule/issues/2","id":163786956,"number":2,"title":"未安装微博客户端不能分享图片？","user":{"login":"kingsword","id":4477464,"avatar_url":"https://avatars.githubusercontent.com/u/4477464?v=3","gravatar_id":"","url":"https://api.github.com/users/kingsword","html_url":"https://github.com/kingsword","followers_url":"https://api.github.com/users/kingsword/followers","following_url":"https://api.github.com/users/kingsword/following{/other_user}","gists_url":"https://api.github.com/users/kingsword/gists{/gist_id}","starred_url":"https://api.github.com/users/kingsword/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingsword/subscriptions","organizations_url":"https://api.github.com/users/kingsword/orgs","repos_url":"https://api.github.com/users/kingsword/repos","events_url":"https://api.github.com/users/kingsword/events{/privacy}","received_events_url":"https://api.github.com/users/kingsword/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-05T07:24:39Z","updated_at":"2016-07-05T08:18:10Z","closed_at":"2016-07-05T08:18:10Z","body":"看到代码这样写的，当判断没有安装微博客户端的时候，不设置mediaObject，是因为微博的限制，在未安装客户端时只能发文字么？\r\n\r\n- (WBMessageObject *)messageToShare\r\n{\r\n    \r\n    WBMessageObject *message = [WBMessageObject message];\r\n    BOOL hadInstalledWeibo = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@\"weibo://\"]];\r\n    \r\n    if(hadInstalledWeibo){\r\n        WBWebpageObject *webpage = [WBWebpageObject object];\r\n        webpage.objectID = @\"identifier1\";\r\n        webpage.title = self.shareTitle;\r\n        webpage.description = self.shareText;\r\n        //  可改为自定义图片\r\n        webpage.thumbnailData = UIImageJPEGRepresentation(SHARE_IMG, SHARE_IMG_COMPRESSION_QUALITY);\r\n        webpage.webpageUrl = self.shareUrl;\r\n        \r\n        message.mediaObject = webpage;\r\n    }\r\n\r\n    message.text = [NSString stringWithFormat:@\"%@ - %@ %@\", self.shareTitle, self.shareText, self.shareUrl];\r\n    \r\n    \r\n    return message;\r\n    \r\n}"},"comment":{"url":"https://api.github.com/repos/xumeng/XMShareModule/issues/comments/230415121","html_url":"https://github.com/xumeng/XMShareModule/issues/2#issuecomment-230415121","issue_url":"https://api.github.com/repos/xumeng/XMShareModule/issues/2","id":230415121,"user":{"login":"xumeng","id":2187660,"avatar_url":"https://avatars.githubusercontent.com/u/2187660?v=3","gravatar_id":"","url":"https://api.github.com/users/xumeng","html_url":"https://github.com/xumeng","followers_url":"https://api.github.com/users/xumeng/followers","following_url":"https://api.github.com/users/xumeng/following{/other_user}","gists_url":"https://api.github.com/users/xumeng/gists{/gist_id}","starred_url":"https://api.github.com/users/xumeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xumeng/subscriptions","organizations_url":"https://api.github.com/users/xumeng/orgs","repos_url":"https://api.github.com/users/xumeng/repos","events_url":"https://api.github.com/users/xumeng/events{/privacy}","received_events_url":"https://api.github.com/users/xumeng/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T08:18:10Z","updated_at":"2016-07-05T08:18:10Z","body":"是的，你可以尝试一下。"}}
{"actor":{"display_login":"xumeng"}}