sharing android application content on facebook - android

how can I allow users to share the data(text data) they have saved in android app on their facebook wall through a share button within the app. I am not sure if I should use facebook android sdk device or share-intent. I will be thankful if someone could provide me with some information on this or tell me about any tutorials related to this.
Thanks

You can not share the text on facebook wall using intent in android. For to achieve this you need to use facebook sdk. Using intent you can share the text on email, twitter and can share the photo on facebook.
I used intent earlier to send text on facebook its was not working earlier.
As per the Facebook's Platform Policies, We cannot pre-fill the share dialog using Intent.EXTRA_TEXT. It is usually thought to be a bug, but as per a Bug Report filed here and also, here, Facebook clearly mentions that this is not the case (it's not a bug).
I found that we cannot add a caption to a photo we are uploading using Intents. The only way we can do it, is integrating the Facebook SDK in your App then photo with text caption will be shared on facebook wall.
To get started for facebbok sdk in android:
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

Related

Distriqt Share ANE message and url not appearing in Facebook

When using Share.service.share("My message", bitmap, url); I'm not seeing the message or the url appear in the Facebook modal that pops up.
The bitmap is making it through, but the text shown in the modal is the standard Facebook prompt ("Say something about this photo"). Once posted onto the FB wall, the image is not linked to the url supplied by Share.services.share call.
Gmail: If instead of selecting Facebook I choose Gmail, then all the params make it through to Gmail's compose email screen.
Not sure why Facebook would fail yet Gmail succeed.
Testing on:
Android 4.4.2
Air 23.0
Facebook API 2.5
Share 3.4.009
Core 2.5.073
This sounds like a limitation of the Facebook sharing policy.
They don't allow you to pre-fill a post with an image or url, unless you go through the Facebook SDK directly.
If you really require this functionality then you'll need to look into implementing Facebook login through the Facebook SDK using an ANE, eg: com.distriqt.FacebookAPI.

How to Invite facebook friends though my application?

I try using this link this. In this tutorial i post my app link only my wall. But i want to share my app link to all my friends. Same like as a XYZ invited to you to try ABCapp only in notification bar. When click on it open google play store of my app page. I want to share my app app link to app facebook friends or selected facebook friend. How can i achieve this?
To invite friends through your app you can use App Invites. Before using this feature make sure to set up your Android Facebook SDK version to 4.0 or later.
You can take a look at the overview in this link
https://developers.facebook.com/docs/app-invites/overview
For the implementation you probably need this
https://developers.facebook.com/docs/app-invites/android
https://developers.facebook.com/docs/apps/faq#invite_to_app
If your app has a Canvas presence, you may also use the Requests Dialog on iOS and Android
If your app does not have a presence on Facebook Canvas: You may use the Message Dialog on iOS and Android, or the Send Dialog on Web
I assume you donĀ“t have a Canvas presence? In that case you should not use App Requests.
Basically what you need is the list of all the friends of user on facebook to invite them. you can get ALL friends' list only if your app is in "GAME" category.
If not, then you can still get the friend list of user , but only some, not all. refer to terms friends and invitable_friends on facebook.
So, here are few things you can do (BUT NOT RECOMMENDED AT ALL)
Change the category of your app to "GAMES" & you'll be able to get
all friend's list & then you can use WebDialog & WebDialog.RequestsDialogBuilder to invite that friends
give any link to canvas URL on facebook app setting. that link will be used only when user clicks your notification from web. that link won't affect your app in any way.

Like a page in facebook from my application and getting feedback

I've seen some games and apps having a feature that enables you to like the app Facebook page inside the app. (or sharing the app website link)
I've read similar questions about sharing on Facebook by intent and I'm enable to share a text on Facebook now. but my question is how can I create like button and how can I get feedback that a user has liked or shared my app on Facebook?
Please help me in details because I have very little knowledge about intents and Facebook sdk.

Facebook, Twitter and Gmail Integration in Android App

I have to share a link to facebook, twitter and gmail. I have implemented facebook integration using Facebook Sdk in my Android app, thus I am able to share my link to facebook. But if I am following the same procedure for twitter, facing lots of problem to integrate it in my app. Please help to solve this problem. Also I am not getting how to integrate same for gmail. Any ideas are welcome.
Thanks in advance
Only for Gmail: one intent to start Gmail.
If you're using i.e. the Actionbar, you should think about the ShareAction Intent. Here is an example:
http://android-developers.blogspot.de/2012/02/share-with-intents.html
If the user has twitter/ facebook intalled on the device it is possible to open them and share them by using the share intent. Other Apps are also included. You ll face other probably other problems if the user is not using the offical facebook and twitter apps. I recommend you the shareintent.

Android Facebook SDK 3.0 Integration with application to Post on Wall

In Android project trying to have a button to post on wall in facebook by user. When that button is clicked need to check whether user is already logged in using other facebook app if so i need to open Post On Wall Dialog with prefilled data to be shared. Please direct me in this to achieve.
I tried following this tutorial http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/
but after asking for user credentials in a webview the page navigates to main activity instead of opening the post on wall dialog. Thanks in advance.
Have you tried using the Facebook SDK website? Try looking at the below two links on the Facebook SDK website:
How to log in:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/
How to publish to a feed:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/
There is also an example application provided with the Facebook SDK 3.0 which can be loaded into eclpise and onto a device for you to better understand how it works (need to add your own APP key of course). There is also the Scrumptious Tutorial on the Facebook SDK site that can run you through everything.
Found here:
http://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/

Categories

Resources