Remove facebook permissions dialogs from my ANDROID app while sharing contents? - java

I have integrated facebook SDK in my ANDROID app for sharing functionality,and as per facebook guidline it will asks for permissions before sharing anything if user doesn't grant it before.
so,does there any way to remove that permissions dialog or if it can handle it in background without showing it over the my android app??
Note:for FB SDK integration I am not using webview dialog or FB dialog , I have implemented my own dialog view for sharing and I am sharing with installed Native FB App.

I'm fairly certain it's against the Facebook policy to post on the user's behalf without their explicit permission to access their data.
You may use Account Information in accordance with your privacy policy and other Facebook policies. All other data may only be used outside your app after you have obtained explicit user consent.
See policy.

Related

Query App Permissions for Other Apps on Android

How do I implement this on android? Not the design but the functionality. Is there a way I can get/change permissions that other apps have from my app?
For instance, get a list of all the permissions Facebook has and remove or add certain permissions.
Thank you for your response.

Google Games scary permission for signin: "Create, edit, and delete your Google Play Games activity"

I just migrated one of my apps from Google Plus signin to Google Signin and updated some achievements code, as I was using deprecated methods and Google Plus is disappearing.
To my surprise, the permissions dialog that shows up when a user signs in to Google Games has change in a scary way:
Before, it said the app could:
View your langiage preferences
View your age range
Share your Google+ profile information and view and manage your game activity
View your basic profile info
With the new version, it just says:
Create, edit, and delete your Google Play Games activity
Does anyone know where this is coming from?
In the process of migrating libraries (I also installed Firebase analytics), some new API keys were automatically created in my Google APIs dashboard, and an additional OAuth 2.0 client ID. There, under "OAuth consent screen" I can see many scopes my app is supposedly using that look unnecessary to me:
../auth/plus.circles.members.read
../auth/plus.login
../auth/plus.profile.agerange.read
profile
../auth/drive.appdata
openid
../auth/plus.login
../auth/plus.profile.agerange.read
../auth/plus.profile.language.read
../auth/games
../auth/games_lite
../auth/plus.moments.write
Can I delete the ones that I don't think I need? Will this remove the scary warning?
One of the other apps I have not yet updated shows fewer scopes (still more than I need):
../auth/plus.circles.members.read
profile
openid
../auth/plus.login
../auth/plus.profile.agerange.read
../auth/plus.profile.language.read
../auth/games
../auth/plus.moments.write
Thanks
Edit: From what I've found out so far, the auth screen depends on the way you create the client used to sign in, and I think I'm using a pretty standard way:
mGoogleSignInClient = GoogleSignIn.getClient(this,
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN).build());
Edit 2: I went to my API console, restricted the uses and scopes of my app, resubmitted my OAuth screen for approval, GOT IT APPROVED... and the Android app keeps showing the scary auth screen.
I also contacted Google for help from the Play Dev Console. Received no reply.
I'm just following Google's advice. As stated here,
// This way you won’t get a consent screen
GoogleSignInOptions signInOption = GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN;
https://developers.google.com/games/services/checklist
Edit 3:
After I got my simplified OAuth screen approved. Firebase created new api keys on its own, so I'm guessing it doesn't like the changes I made manually. I am alos getting non-fatal crash reports from users rejecting the app permissions (error 12501) after trying to access the achievements screen. Google has not responded at all.
I've faced the same problem and got it fixed using
GoogleSignInOptions.DEFAULT_SIGN_IN
instead of GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN

Facebook notification when event happens on my server

I'm new to FB API, and I'm completely lost through variety of them. I have Java web app, and FB login to it on my site. How can I send notification to user, when some event happens (for example, his good arrived, and we want to notify him)?
Should I use Cavans application, or Graph API? Is it possible?
https://developers.facebook.com/docs/games/notifications
Currently, only apps on Facebook.com can use App Notifications. Notifications are only surfaced on the desktop version of Facebook.com.
Meaning, App Notifications are for Page Apps or Canvas Apps and you can send them with an App Access Token to every user who authorized your App. I suggest reading the whole article in the Facebook docs, there are some important rules and a lot of important information.

Android permissions using admob - are they necessary?

Could you help me?
I have a question about permission required by using admob in my application. Are these permissions really necessary? I've found some app on PlayStore they are using ads without any permissions? How can I do it?
Thanks for your suggestions
The internet access permission does not by default show up when you are downloading an app under the permissions that the app uses (i.e. "The app requires no special permissions to run." In this example the app could still use internet access. Google simply gave every app the permission, however you still need to declare that you use the permission in your application). If you have checked the permissions manually (using a program) and the application does not use the internet access permissions then the "ads" are likely just pictures that when clicked open your browser. Thus they require no internet access.
However to use admob the INTERNET ACCESS permission is required, the reason you don't see it is because Google no longer states whether application have this permission or not.
Internet permission is required now. Although, existing app with no Internet permission still works.

Android Authentication Mananger, when is user permission required?

I am writing an Android App and I need to request an Auth token from the account. Getting the list of accounts and the token is easy, I have that working so far.
The problem is that Jelly Bean opens a popup, asking for users permission. Now my question(s):
What are the rules for the popup dialog to appear? I had that happen once, for the first time after I updated my device to Android 4.1. It seem to happen randomly: installing and uninstalling the App I was not be able to reproduce the situation where this popup comes back.
Is there any way to reset it without doing factory reset? I need to reproduce this for testing for question 3.)
Is there a way to find out if the popup will appear before requesting the authtoken and i.e. wait until it's not required anymore (i.e, if user has the app in question installed but never used or if authtoken is expired?) and request it then?
I know that most Android users are very inexperienced and may get scared by some permission requests and I'd like to avoid requesting authtoken when it would trigger this user popup.
I Tried to revoke acces to an app engine project of mine and I was able to revoke the permission by going to google accounts setting page. There you can revoke access from android login service. After that I had to remove the google account from my phone and add it back. If you start your app again you should see the permission dialog again.
Resetting/revoking the permission generally depend on the type of token. There are two sides of this: revoking the token on the server side using your Google profile page and revoking the permission for your app to use this type of token (on Android). For the server side you can revoke OAuth and AuthSub tokens, but not ClientLogin tokens. Go to https://www.google.com/settings/security and click the 'Edit' button in the 'Authorizing applications and sites' section. For revoking the on device permission, uninstalling the your app should reset it (it removes an entry in a system database when your package is uninstalled). Apparently this doesn't work properly on some devices, but it should work. The dialog will only appear when you try to use a token, so it shouldn't appear before you request it. You should handle expiry in your app (i.e., request a fresh token), but this won't show a permission dialog.

Categories