I have made a chatting application, In my application there is a login page, but I don't want to use this page again , once the user has installed the application for the first time. This page should not appear again and again.
I mean when the user first sign in the application, the next time when he comes back the application should directly take him to his home page as in facebook,whatsapp or hike.
I think this approach is known as Single Sign On (SSO) approach. I have traversed the stackoverflow but have not found any relevant link of my interest yet.
Please help me with a good hyperlink or any useful solution so that I can move on.
Thanks
Using SharedPreferences would be the way to go. Have a look at this thread for help.
Related
The app can redirect you to the FB page in question and get you to press the like button. Trying to understand if that can be done quicker. Tks
No, that is not possible.
Facebook allowed liking certain object types in the name of the user via API until a while ago - but it has been removed since, simply because the feature was abused too much.
And Facebook pages could never be liked via API, that has always been possible via the official Like buttons only.
My application is an app for making a travel schedule.
I want to make the app that shares user's schedules.
For this, I tried to simply share text between app users.
Let me explain the steps.
One user shares the app on Facebook to the other. When he shares the app, Text "abc" should be included, not on Facebook, but on the app.
(And I already made Textview to see if it can be sent.)
The other user opens the app on Facebook. Then Text "abc" should be seen on Textview.
I don't even know what keyword I should search.
I tried to use 'intent' and 'action.SEND'. But it doesn't work.
Could you please let me know the steps to do the above function?
Thank you in advance.
I want to allow users to share image from my app on Facebook. Say I already have an image (i.e. file path). How do I go about letting a user share it on Facebook? Basically I want the user to agree once. Then from there on, whenever the user takes a certain action in my app, share a particular image on Facebook on behave of the user. Notice that the image is to be shared automatically without the user having to take action each time; so the Facebook sharing is incidental to some other action in my app. I am looking at the Facebook documentations. It is not clear which path to take to accomplish what I need. So thanks for any guidance.
Again, the user agrees once and goes on her merry way. Then the app, each time a user takes a certain action, share an image on Facebook.
UPDATE
Here is the path I have identified for sharing a photo on behalf of a user
Setting up your app to use Open Graph
Creating an Open Graph Story
Posting with API calls
The problem with this approach is that, at least in the sample project, the user has to click on Share each time. But I don't want the user to have to click on share each time. I want them to give me permission once. And then from there the app shares for them automatically.
Trial and error is expensive here as it is a lot to implement just to see if it were what I was looking to do: Which is why I am asking here, hoping someone here has done this in the past and don't mind sharing their experience.
You should ask the user for the publish_actions permission, and then use Request.newUploadPhotoRequest to publish a photo. https://developers.facebook.com/docs/reference/android/current/class/Request/#newUploadPhotoRequest
You need uses-permission Facebook, try this; https://developers.facebook.com/docs/android/getting-started
After you do this, you need to take method onClick and send the picture directly for facebook, but for this, is necessary the login of user's.
In my app I need to post certain content on user's timeline. I followed official tutorial given on https://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/. But in this tutorial, they've mentioned to set up Login flow first. And they have given a nice guide to do that. That's fine.
But the way I want is, user will be presented with Share Story button only. If user is logged in, story should be posted directly. And if not, normal login flow should be followed asking desired permissions and on login callback story should be published. I don't want to display Login button explicitly.
I stuck on this because in docs, everywhere they've mentioned to use <com.facebook.widget.LoginButton .... /> for login purpose. I don't want to use this at all as this will require user to interact two times. First tapping on Login button and second time to publish story he/she has to tap on Share Story button.
I can't find a way to check if user is not logged in and force him/her to login first from my code block.
It might be a bit late, but this appears to answer your question:
Android - Facebook SDK 3 - How to login programmatically without LoginButton
I am working on Integrating Facebook in an android app.. I downloaded the examples from github. There was one simple example. I created an APP_ID and passed it in the activity. The problem is : when i login using one Facebook user account I was able to post on wall,upload photo. But when i logged out from one user account and logged in as another user I am able to just post text on the wall and not able to post photo. During the second user login m getting a Note like : "logging in will not add this app's activity to facebook" . Please help to resolve this. Does this mean that the previous user is not logged out properly. What might be wrong. Pls help me As soon as possible
Don't use native apps with something that is internet based, even Youtube are bailing on their native app, concentrate on HTML5 and jQuery Mobile and stop wasting you time!Facebook will bail on the native world soon too!
I know that's not the answer and I'm sure you need to get to the bottom of your problem, but iv'e being going nuts with apps and dynamic internet stuff for a while now and they just don't mix.
Apps offline and mobile websites online, its the only way forward!
Cheers,
Mike.