facebook-share

Can't share text to fb messenger using UIActivityViewController

这一生的挚爱 提交于 2019-12-12 20:09:14
问题 I can share text to whatsapp/message app using NSString* text=@"I am sharing this text"; NSArray* sharedArray=@[text]; UIActivityViewController * activityVC=[[UIActivityViewController alloc]initWithActivityItems:sharedArray applicationActivities:nil]; dispatch_async(dispatch_get_main_queue(), ^{ // code here [self presentViewController:activityVC animated:YES completion:nil];//:activityVC animated:YES]; }); BUt the facebook messenger option is missing when I use this piece of code. I have to

Custom image on facebook sharer

醉酒当歌 提交于 2019-12-09 19:54:36
问题 I'm working on task of share a link on facebook. But I want to display my own static image (independent of url). With help of google and facebook, I come to know that I have to pass image path (which I want to display) in image parameter of sharer.php. But still, it displays image related to that site. I don't know that where is my mistake. If anyone know answer then please explain or suggest me link from where I can understand from beginning. Thank You. Here is my code. <?php $title =

Share multiple photos on the same post in Facebook using UIActivityViewController

孤人 提交于 2019-12-08 04:14:11
问题 Below given code, I'm sharing 1 text and 2 photos using UIActivityViewController. Then I choose Facebook for my sharing destination and it's shared on 2 separated posts on the feed for each photo but what I want is to share it in one single post with 1 text and 2 photos. How can I achieve this? I have done lot of search on here and found no proper answer. It seems to me that Facebook may have no clear way to do this, so it's like such an issue may lie on their side. activityItems = @[self

Make my own custom Facebook share button

↘锁芯ラ 提交于 2019-12-07 19:44:32
问题 I'm pretty (below) average when it comes to HTML/CSS-coding. My Javascript knowledge is at the copy-and-paste level. This is my problem: I want to make my own Facebook share-button! It used to be simple with sharer.php, but I'm afraid it will be deprecated. So I want to trigger the share dialog with a link of my own, instead of using Facebooks own ugly share button plugin. I've read the page about the Share Dialog on Facebook Developers. But I don't understand how/where to use the code

Tag <provider> attribute authorities has invalid character '{' in AndroidManifest.xml using Facebook ShareLink

末鹿安然 提交于 2019-12-06 21:19:09
问题 Though I delete the "{}" braces but it still occurs. <provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider{facebook_app_id}" android:exported="true" /> 回答1: I had the same: the IDE re-inserted the curly braces. I cut the part, restarted Android Studio and pasted it. Then it worked. 回答2: The format shoud be: android:authorities="com.facebook.app.FacebookContentProvider0123456789" , where 012345678 is your Facebook app ID .

Facebook SDK Share Link content gets replaced by meta data from content URL

早过忘川 提交于 2019-12-06 10:26:16
问题 I've set up content for FBSDKShareLinkContent, and set each param contentURL, contentTitle, contentDescription, imageURL. When the share dialog loads in the facebook native app, it is correctly populated with my params. However, once I check the post on facebook, the param data is no longer shown and instead the post title is from the meta data of the contentURL. How do I override the meta data with my contentDescription and contentTitle? Thanks! // Assemble Content var content:

Facebook share with custom parameters with API version 2.9

杀马特。学长 韩版系。学妹 提交于 2019-12-06 04:26:37
问题 I need to share a result of a quiz on facebook containing a custom title, picture and description. Wich worked perfect before update to version 2.9 on April 18 . But it isn't working with Version 2.9. So am I missing out something there? Or does Facebook don't want us to share custom Facebook Feeds of our websites in 2017? For my Setup for a test facebook feed I coded strictly with Facebook Developers Documentation. Facebook Changelog v2.9 says parameter picture, name, description and caption

Tag <provider> attribute authorities has invalid character '{' in AndroidManifest.xml using Facebook ShareLink

让人想犯罪 __ 提交于 2019-12-05 02:06:15
Though I delete the "{}" braces but it still occurs. <provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider{facebook_app_id}" android:exported="true" /> I had the same: the IDE re-inserted the curly braces. I cut the part, restarted Android Studio and pasted it. Then it worked. The format shoud be: android:authorities="com.facebook.app.FacebookContentProvider0123456789" , where 012345678 is your Facebook app ID . Use it without the { character. So your provider tag should be: <provider android:authorities="com.facebook.app

Custom image on facebook sharer

一笑奈何 提交于 2019-12-04 17:01:37
I'm working on task of share a link on facebook. But I want to display my own static image (independent of url). With help of google and facebook, I come to know that I have to pass image path (which I want to display) in image parameter of sharer.php. But still, it displays image related to that site. I don't know that where is my mistake. If anyone know answer then please explain or suggest me link from where I can understand from beginning. Thank You. Here is my code. <?php $title = urlencode("How to Create a Custom Facebook Share Button with a Custom Counter"); $url = urlencode("http://www

Facebook share with custom parameters with API version 2.9

扶醉桌前 提交于 2019-12-04 10:26:34
I need to share a result of a quiz on facebook containing a custom title, picture and description. Wich worked perfect before update to version 2.9 on April 18 . But it isn't working with Version 2.9. So am I missing out something there? Or does Facebook don't want us to share custom Facebook Feeds of our websites in 2017? For my Setup for a test facebook feed I coded strictly with Facebook Developers Documentation . Facebook Changelog v2.9 says parameter picture, name, description and caption are not supported anymore. My fb api init: <script> window.fbAsyncInit = function() { FB.init({ appId