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.
Related
I'm trying to make an application for Android that can post a picture on the Facebook Wall. I did, but I cannot post something on the wall of another Facebook profile of mine, in other words my application asks me to login to Facebook, if I login with the account with which I have registered my app then my app post the image on the wall of this account, but if I login with another account my app fails to post anything on this wall.
I think it's a problem of setting and not code (because in first case it's work). On the developer page in "status and review" to the question "Do you want to make this app and all its live features available to the general public?" I replay "YES". But this does not seem to be enough. What do I do?
Facebook SDK version 3.18
That's because you are on sandbox mode, when you release your app, it'll be available. Meanwhile, you can't, just with your account.
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/
I am trying to add a LIKE button to my android app that the user can press to like a fan page.
To my understanding, this is not possible because of Facebook security restrictions.
My alternative is to display a Like button using WebView with the "like social html code" provided by Facebook.
The issue with that approach is that the user will have to re-login to Facebook using the web interface for him to see the like button. That is, after he already logged in using the SDK authentication (which is also a web view).
Is it possible to do all of that using only one login?
How is it that logging in using the SDK does not save the cookies to the default web browser (the SDK uses a web view...) ?
Are there any alternatives to accomplish that?
Try logging into your application with SSO. Non SSO(Normal) authentication uses the Facebook application installed on the app. If you do a SSO FB login into your app and simply pass a url to webView for the "Like" feature, I guess it should work because you are using a SSO FB login for the app and pre installed facebook app on the device to handle the webview's FB.
I am hopeful about this. Please share your feedback.
I want to put in may application a button which will give a possibility for the user to input some message and post it on his wall. My question is, how to implement this scenario:
User enters message and clicks Share button.
If Native FaceBook app is present on the device, it is fired in order to post this message, or to login first and give permissions.
If Native FaceBook app is NOT present on the device, web browser is fired and redirected to facebook page in order to login and post a message. (Or popup with WebView instead of web browser app)
this is the sample project link https://github.com/facebook/facebook-android-sdk
and the tutorial link is : http://blog.doityourselfandroid.com/2011/02/28/30-minute-guide-integrating-facebook-android-application/
Basicly, i want to provide users to share my application's android market url. I do not want to use "facebook api for android" so my way is like that when the user press the button of "share on facebook", web browser opens "www.facebook.com/sharer.php" then user login it and application's market url string paste in "write something" (textbox of facebook sharer.) Is it possible to make like this or must i use facebook api for this work?
Please don't use sharer.php as it is deprecated, Facebook may completely pull it at any time. Try to see if http://developers.facebook.com/docs/reference/dialogs/feed/ will work for you instead.
No, not really, unless you really hack things up.
Look at the dialogs documentation: http://developers.facebook.com/docs/reference/dialogs/, for each dialog they provide a url, but if you try them you'll see at the bottom of the dialog that it's "shared via Cool Social App".
You need to have an application if you want users to share, and if you already have a fb application, and you want to do the share from an android application, then yes you can just open a web browser with the dialog url, but using the android facebook sdk will be a much better choice since it has the Single Sign-On: http://developers.facebook.com/docs/mobile/android/sso/, that will check if the user is already signed in to facebook in the mobile device, and if so will skip the authentication process.