At this years Google I/O(2015), google revealed some new kind of intent filters, i don't remember the name i just remember the demo.
A google developer said something like this "Now if a person clicks on twitter link then user will be prompted to choose to open link in browser or in the twitter app but no no, this should not work like this" and he demoed a new method through which if user clicks on twitter link, it will directly open in twitter app.
I know the question is very vague but i just couldn't remember it, googling also didn't help. If anyone knows please help.
It's called "deep linking".
Have a look at this topic:
http://www.androidpolice.com/2015/05/28/io-2015-android-m-will-support-app-deep-linking-without-that-annoying-selector-prompt/
Here is the documentation:
https://developer.android.com/training/app-indexing/deep-linking.html
Related
New to android here but not to stackoverflow, i know this was asked before but hear me out first:
So regular Share through chooser:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, message);
sendIntent.setType("text/plain");
No longer works!, facebook doesn't allow pre-filled text to be sent(so i understood).
BUT I've seen apps do it anyways, by first presenting a pre-filled dialog they created with the text and then showing a custom chooser for sharing.
I have no idea how they do that, i can't find any answers in the forums for pre-filled text share to facebook.
Worst part is, i want to share text with an image, like in this photo here.
Where can i get a good sample project / Tutorial for:
1. simple facebook share.
twitter and google+ sharing.
custom chooser.
Also, would like to hear your comments and regards on best practices with social media sharing AND using a chooser.
Cause i also want the be able to share to apps like WhatsApp and other of that sorts.
With facebook's new SDK you can no longer use ACTION_SEND to share text information.
You can post on behalf of the user but not pre-fill the text for a status update, at least i did not find a way to do that.
You must also have your app actions checked and accepted by facebooks policy.
The answer: Stop working with facebook untill they remove their app from the ACTION_SEND in the android chooser.
I think this is one of the question in which i am getting confused and not getting clear picture even after reading the documentation of facebook.
My question is
I have created one developer account and one normal facebook account.
Now in mine application i want that the user should be able to log in and share the things
With Developers account i am able to login and share the things also but with the other account which is not a developers account i am able to successfully logged in but not able to share the things on the wall.
I have read the documentation and there it's mentioning that the app need to be submitted for approval.
Hence my point is I am confused with this part do i really need to submit the application for approval or it can be done without approval also.
For the share part I have used the Facebook sample example (publishFeedHowTo). The github link is :
https://github.com/fbsamples/android-3.0-howtos/tree/master/PublishFeedHowTo/src/com/facebook/samples/publishfeedhowto
Nope there's no way other than getting approval from Facebook.
I myself have sought approval for a few apps of mine, facebook generally takes 2-3 business days to review your app and allow you to share from other accounts
Your app must have to be reviewed by the fb developers for this.
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.
I'm able to create Interactive post by using sample example, as below.
Intent shareIntent = new PlusShare.Builder()
.setType("text/plain")
.setText("Welcome to the G+ platform.")
.getIntent();
startActivityForResult(shareIntent, 0);
when the activity starts it shows up window where user have to press share button manually.
Is there any way to post directly to Google plus stream by adding default recipients(Public/to circle) without asking user to press Share button.
For content that appears in a user's stream, that user must explicitly share it. Put another way, posting to the user's stream is to do something that the platform does not support. This is done by design because users want to be in control of what appears in their stream. Deceiving the user and posting to their stream or sharing without consent puts you in violation of the Google+ developer policy and your API client can be banned until you are compliant should you even find a way to do this.
More information and several related questions are:
Sharing on Google+ Stream covers passively writing to Google with app activities.
How do I post to Google+ from PHP?
How to post to Google wall
Google+ API for posting
Please post the feature request in the Google+ platform issue tracker and let the Google+ platform team know why you feel you should be able to do this.
It's hard to explain in words what I'm talking about.
When you open an app on your phone, sometimes it requires you to give a username/email and password credentials. Some applications have an option to "Login with Facebook" and quickly allows the user to login to facebook. By doing this, it gives you a new account by using your facebook information (I guess?).
I know you can do this with my websites too.
My question is what is this called? does facebook devs have a specific name for this? If so, how can I implement it through android, and even through web development?
Thanks!!
UPDATE: For example: When you log into this stackoverflow site. You are able to click on the "login with Facebook" and quickly login without have to fill in information. I know it's the same way with the stackoverflow android app.
Facebook uses OAuth 2.0.
Related: OAuth Facebook API Tutorial
I think you are looking for the word "OpenID". Facebook logins are OpenIDs. Allowing users to use the same credentials for different webpages
What you are looking for is called Facebook Single Sign-On. The facebook developer docs should be enough to get you started.