[英]iOS Facebook SDK share photo and after logout from Facebook app
[英]Facebook iOS SDK share picture from App
我嘗試分享圖片到Facebook。 這是工作。
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kAppId, @"app_id",
url, @"link",
@"http://yandex.st/morda-logo/i/logo.png", @"picture",
title, @"name",
produc, @"caption",
tempString, @"description",
message, @"message",
nil];
但我想從我的應用程序分享圖片。 我試試
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kAppId, @"app_id",
url, @"link",
[UIImage imageNamed:@"nav.png"], @"picture",
title, @"name",
produc, @"caption",
tempString, @"description",
message, @"message",
nil];
但我有問題:
:frame:decisionListener:delegate: - [UIImage length]:發送到實例0xc98b1d0的無法識別的選擇器
我究竟做錯了什么? 非常感謝你
嘗試使用“來源”而不是“圖片”。 圖片期待網址字符串。
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kAppId, @"app_id",
url, @"link",
[UIImage imageNamed:@"nav.png"], @"source",
title, @"name",
produc, @"caption",
tempString, @"description",
message, @"message",
nil];
嗯,我不是用戶Facebook會解碼你的位圖圖像,將圖像保存在他們的服務器上,並讓它在你的牆上可用^^
嘗試使用URL而不是圖像的NSData數據。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.