w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Django-social-auth extended facebook permissions like spotify
Django-social-auth has been superseded by python-social-auth. In python-social-auth, you define extended permission by using SOCIAL_AUTH_FACEBOOK_SCOPE inside settings.py. For example: SOCIAL_AUTH_FACEBOOK_SCOPE = ['email', 'user_photos'] It will only show a single authorization dialog.

Categories : Python

Facebook Alers : Too Many Login Dialog Permissions
You can safely ignore the publish_stream permission as it is already included with the publish_actions permission. Quoting from the blog post about the same issue publish_actions will now include basic publish_stream permissions (including posting on a user's timeline, posting photos/videos, commenting on and liking content), which will appear on the first Auth Dialog screen. With this change, apps that were previously granted publish_stream do not need to request publish_actions.

Categories : Facebook

Why is Facebook OAuth Dialog using outdated permissions list for my app?
In your App Dashboard (https://developers.facebook.com/apps), go to Settings > Permissions, remove all the permissions you don't need, and click "Save Changes."

Categories : Android

ion auth how to handle access via groups and permissions
What you are looking for is what is called an ACL (Access Control List), which is not the same as an authentication library & is not included in ion_auth by design You can google around for a good library you like

Categories : PHP

Which permissions are required in order to use geolocation in Google Maps API v3?
Did you try adding these to your AndroidManifest.xml? Try adding them and then re-build the project. You can find the file in the native folder of the Worklight app. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

Categories : Android

Facebook Redirect url to "https://www.facebook.com/dialog/oauth/read" with no access token
I might be mis-understanding your question/issue, apologies if so.. in your first line.. you have the redirect_uri set to just go back to facebook, whereas it's supposed to be the URI of the page on your site that you want facebook to send the user to after they authenticate and approve your app, no? in other words shouldnt your first line be: https://www.facebook.com/dialog/oauth?client_id=xxxxxxxxxxxxx&redirect_uri=**https://WWW.YOURDOMAIN.COM/YOURPAGE.ASPX**&display=popup&scope=publish_stream,user_status&response_type=token after the user clicks "okay" on the popup, it will then redirect them to YOURPAGE.ASPX on your site, passing the access_token

Categories : Vb.Net

publish_actions firing second permissions dialog
Quoting from the Permissions documentation Additionally publishing permissions such as publish_actions or publish_stream will prompt a second step in the Login dialog, which can cause fewer people to log in: You will always get the second prompt when you ask for either of the permissions. It was long time ago when using publish_actions permission didn't cause a second dialog box as documented in this blog post.

Categories : Facebook

Post dialog on Facebook wall and Facebook page
Yes. After your above post is completed, you can simply make another call to publish on the fan page . Just like: FB.api("/pageid/feed", params); Just like this: function callback(response) { var obj = <YOUR_PARAMETERS>; if (response && response.post_id) { alert(response.post_id); FB.api("/<YOU_PAGE_ID>/feed", 'post', obj, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: ' + response.id); } }); } } Permissions required: manage_pages, publish_stream

Categories : PHP

Facebook auth keeps redirecting
Use this code instead - $canvas_page = "https://apps.facebook.com/APP_NAMESPACE/MY_CURRENT_PAGE.php; $auth_url = "https://www.facebook.com/dialog/oauth?client_id=APP_ID&redirect_uri=" . urlencode($canvas_page)."&scope=publish_stream"; $signed_request = $_REQUEST["signed_request"]; list($encoded_sig, $payload) = explode('.', $signed_request, 2); $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true); if (empty($data["user_id"])) { echo("<script> top.location.href='" . $auth_url . "'</script>"); } else { // you code }

Categories : Facebook

Facebook Login Permissions
1 set nothing to "scope", you don't need to know your user's like data in this scenario. 2 I guess you do need to have you own facebook app. 3 You can listen to user like event , and then redirect them wherever you want.

Categories : Facebook

Retrieving Facebook name without any permissions
Sure you can't get name without user ID , which needs a little permission also you can check this question Get user name from graph api

Categories : PHP

How to make dialog background image not expand dialog in android?
If you are setting it in an xml, you can just set the width and height to a set amount, like this: android:layout_width="100dp" android:layout_height="50dp" or, better yet, use dimensions so you can adjust with different layouts. Or you can set them manually like this below. Here is a nifty little alorithm that Ram kiran used in this answer AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setView(layout); builder.setTitle("Title"); alertDialog = builder.create(); alertDialog.show(); alertDialog.getWindow().setLayout(600, 400); //Controlling width and height.

Categories : Android

Facebook app check user permissions
if you don't state the "privacy" when you post with you application on behalf of a user, your app's post is going to be public by default (if the app has been authorized and the user has pressed a button to post). If you want it to be visible to friends only, you have to state it in the privacy option. If you're referring to the post made through the share widget or a like button, then there's nothing much you can do, because those buttons work without user's authorization to the app. If the user has authorized your app to read their statuses (this is another separate action), you can get the last posts and check its privacy settings (it's in the JSON, if you call the graph at the URL /userid/feed. I hope this helps. EDIT: "privacy" is one of the possible settings of the JSON object you g

Categories : Facebook

Android facebook login set permissions
Are you talking about email + location on Facebook or email and location on your Android tablet. If you're talking about FB permissions you pretty much have to use the FB SDK, and request the permissions see this list of FB permissions. FB doesn't like developers to roll their own interfaces, and will block you if you app gets popular, and you broke the TOU. If you want to get that from Android, you'll need to add <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> to get location. You can use an Intent to send an email. You can also reference the entire list of android permissions here

Categories : Android

facebook permissions - public pages
Using these credentials. I got a access token, which doesn't expire at all. I would love to hear explanation on that! You must be talking of the App Access Token, yes, it never expires. It's the user/page access token that expires. App access token has limited powers. You can read more about access token here: Access Tokens do I need the user to login to Facebook? If you app is just showing the data of the public pages, nothing to do specific to the user, you don't need to implement login etc. At later, if you require to perform some user-specific actions, you might have to use loginand get the user access token (that expires!) to perform those actions.

Categories : Facebook

Laravel 4 Auth with Facebook (no password authentication)
To login any user into the system, you need to use the User model, and I bet inherited classes will do the trick as well but I'm not sure. Anyway, your Fan model does not associate with the User model/table in any way and that's a problem. If your model had a belong_to or has_one relationship and a user_id field then you could replace Auth::login($user) with Auth::loginUsingId(<some id>). Original answer: You are missing an extra method call: ->get() or ->first() to actually retrieve the results: $fan = Fan::where('fbid', '=', $user['uid'])->first(); Alternatively, you can throw an exception to see what's going on: $fan = Fan::where('fbid', '=', $user['uid'])->firstOrFail(); If you see different errors, update your question with those errors.

Categories : Facebook

Facebook JS api: Not receiving user email despite asking for permissions
As far as I can see, and providing there are no errors being thrown elsewhere and that the "addScope" method is being called, your code is correct. Just make sure that there actually is a value to return (that the user has a birthday and email, otherwise you will not get it back. as stated here: https://developers.facebook.com/docs/reference/api/user/ ) I am using the FB api and have had no problem getting email and other fields while using the User access token.

Categories : Javascript

Why does facebook show multiple permissions dialogues?
It is not a bug but this is by design, the first dialog box consists of read permissions and if you have asked for the publish_actions or publish_stream a second prompt will appear asking user to provide the write permissions. Quoting from the Permissions documentation Additionally publishing permissions such as publish_actions or publish_stream will prompt a second step in the Login dialog, which can cause fewer people to log in. Also as a best practice, you should ask the write or publish permissions only when you need it. Quoting from the Permissions documentation, Apps should separate the request of read and publish permissions. Plan your app around requesting the bare minimum of read permissions at initial login and then any publish permissions when a person actually needs t

Categories : PHP

Facebook permissions window doesn't appear on tablets using JS SDK
Had this issue a while a go. I got around it by using thee facebook login button https://developers.facebook.com/docs/reference/plugins/login/ this works fine on tablets but using the fb.login in javascript just errors because of the issue you described.

Categories : Facebook

Facebook SDK asking for permissions again and again like running in a loop in android
Try this: Session.openActiveSession(this, true, new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { if (session.isOpened()) { List<String> PERMISSIONS = Arrays.asList("publish_actions"); if (!session.getPermissions().containsAll(PERMISSIONS)) { Session.NewPermissionsRequest newPermissionsRequest = new Session.NewPermissionsRequest(ActivityRegistration.this, PERMISSIONS); session.requestNewPublishPermissions(newPermissionsRequest); } Request.newMeRequest(session, new Request.GraphUserCallback() { @Override public void on

Categories : Android

Angular + Facebook JS SDK login: Not requesting my permissions
Try attaching a listener to the facebook login event / statuschange: $facebookProvider.Event.subscribe('auth.authResponseChange', function (response) { console.log(response); }) And look at the response element to see if you have an error or not

Categories : Facebook

Get publish_action permission after getting read permissions from Facebook
From the facebook sdk 3.0 documents you can not give the read and publish permission simultaniously. But once you open the session with read permission later you can update this session to publish permission, by UiLifecycleHelper class. Once the session state changes to SessionState.OPENED_TOKEN_UPDATED means session updated with publish permission. Here is sample code for you hope this help you. public class Example { private static final int REAUTH_ACTIVITY_CODE = 100; private static final List<String> PERMISSIONS = Arrays.asList("publish_actions", "publish_stream"); private static final String PENDING_PUBLISH_KEY = "pendingPublishReauthorization"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView

Categories : Android

Permissions error on Facebook JS API for comments, even though I have the auths
I am attempting to POST a comment you are just giving the page id. How would the facebook know that to which feed, it should comment? So, you should provide facebook the feed-id instead of the page where you wan t tp post a comment. Here's the correct syntax if you want to post comment on a feed: /POST_ID/comments, instead of /PAGE_ID/comments And, if you meant to post a feed instead of a comment, you should use- /PAGE_ID/feed

Categories : Javascript

Exchanging Facebook Auth Code for Access Token using the PHP SDK
The easiest way I found to do this is to extend the Facebook class and expose the protected getAccessTokenFromCode() method: <?php class MyFacebook extends Facebook { /** If you simply want to get the token, use this method */ public function getAccessTokenFromCode($code, $redirectUri = null) { return parent::getAccessTokenFromCode($code, $redirectUri); } /** If you would like to get and set (and extend), use this method instead */ public function setAccessTokenFromCode($code) { $token = parent::getAccessTokenFromCode($code); if (empty($token)) { return false; } $this->setAccessToken($token); if (!$this->setExtendedAccessToken()) { return false; } return $this-&g

Categories : Facebook

Django social auth facebook : value of SIte URL for locahost?
What kind of URL is this - http://www.localhost.com:9000/home? I think this is what you should write- http://localhost:9000/home. But make sure, your app is in Sandbox mode; since you are running your app on the local server.

Categories : Facebook

Get a Facebook Page's public posts without an auth token
Is this really a limitation of the API? No. Is there a way to suppress the "[App] would like to access your public profile and friend list" message when acquiring an auth-token with no extra permissions using the Android SDK? Yes. If you read the documentation properly (Post), its clearly mentioned that any valid access token is required to fetch the details* of the posts of a page. So, you could use the App access token, which you could get without any authorization step- from here or a simple GET request (server-side)- GET /oauth/access_token? client_id={app-id} &client_secret={app-secret} &grant_type=client_credentials Is it perhaps possible using a server-side SDK? Depends on you, how you want to implement. *Note: Of course, the posts that you can see would

Categories : Android

AngularFire auth failing silently on Facebook login
This problem seemed to be related to an issue of placement and ordering of js dependencies. I moved these dependencies into HTML Head and it works: <script type="text/javascript" src="https://cdn.firebase.com/v0/firebase.js"></script> <script type="text/javascript" src="https://cdn.firebase.com/v0/firebase-auth-client.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.5/angular.min.js"></script> <script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"> </script> <script type="text/javascript" src="js/vendor/angular/angularFire.js"></script> <script type="text/javascript"src="https://cdn.firebase.com/v0/firebase-simple-login.js"></scrip

Categories : Angularjs

Handling User Auth (via Facebook) and secure communication within an app
I don't know if you could authenticate your app with facebook module but take a look at backend as a service providers like this one: apiOmat the also offer "private beta modules" which means you can ask for features.

Categories : Android

Different Facebook data in response based on auth token
The venue for that event has user restrictions on it. Using the Facebook explorer you have the user context of yourself and you are over 21 or in the right location etc User restriction doco can be seen here https://developers.facebook.com/docs/opengraph/howtos/user-restrictions/ How I check for it is use a browser where I am not signed into facebook and go to the relevant page www.facebook.com/203514029694703 (your venue) and you will see without user context you cant see the page. If you try and look at the same page with you logged in you will be able to see it as you do in the FB Explorer.

Categories : Facebook

After selecting Cancel on Push Notifications permissions dialog, settings show notification alerts are ON
Following an infinity of restores and testing, I found the following. If the user selects Cancel in the "xxx would like to send you push notifications" then alerts will be off in Settings->Notifications->App Name, unless a) A call to cancelAllLocalNotifications was made before registerForRemoteNotificationTypes:, in which case all alerts will be on. This feels like a Apple bug. or b) A call to setApplicationIconBadgeNumber:0 (didn't try other numbers) was made before registerForRemoteNotificationTypes: was made, in which case only badges will be on. Arguably, it's reasonable to enable badges if we actually set the badge number, so it's not totally obvious that this is a bug rather than an (undocumented) feature. A workaround for this bug/feature is to check that push is enabled before

Categories : IOS

JSoup Authentication Required Dialog
I wasn't able to authenticate using JSoup, but I managed to create a work around. What I did is to implement org.apache.commons.httpclient.HttpClient and org.apache.commons.httpclient.methods.GetMethod for connecting and getting the DataInputStreamReader. The DataInputStreamReader will be passed to JSoup, so we can use JSoup for parsing the xml/html. See the code below: // codes GetMethod method = new GetMethod(url); // passing the credentials HttpClient httpClient = new HttpClient(); httpClient.getState().setCredentials(org.apache.commons.httpclient.auth.AuthScope.ANY, new org.apache.commons.httpclient.NTCredentials(username,pass,url,domain)); Document doc = null; // org.jsoup.nodes.Document if( http.executeMethod(method)==200){ doc = Jsoup.parse(new DataInputStream(method.

Categories : Java

granting minimal permissions during facebook "Login Flow for Web"
For reference, since I spent a good amount of time researching an answer to that question, I believe that it is impossible to explicitely not request permission from the user to see his list of friends. The Facebook documentation hints at this by stating that these are the "default" permissions that every application gets.

Categories : Facebook

Facebook iOS SDK - open session and request read permissions
You can "init" your session with read permissions by calling the initWithPermissions: method. Then call openWithBehavior:completionHandler: which will do only 1 open call with the permissions you've already set.

Categories : IOS

Facebook login button not accepting permissions upon click
you should "can" not mix read and write permissions anymore with the login button you have to get just basic and read, then in your flow of the site ask for write when needed https://developers.facebook.com/docs/facebook-login/permissions/ Here are a few guidelines to use when asking for permissions, both during and after login: Only ask for the permissions that are essential to an app. Ask for permission in the context in which they are required. For example, if your app wants to show places of interest near a person's home, asking for user_location just prior to displaying that information would give the person a greater understanding of why the permission is being requested. Use any available public profile information before asking for a permission. Fo

Categories : Facebook

Properly Requesting Publish Permissions using Facebook-Android SDK 3.0
As Ming Li has pointed out in a comment, you do not need to implement uihelpers but you'll need the following in addition. Implement StatusCallback private Session.StatusCallback statusCallback = new SessionStatusCallback(); private class SessionStatusCallback implements Session.StatusCallback { @Override public void call(final Session session, SessionState state, Exception exception) { if (session.isOpened()) { switch (state) { case OPENED_TOKEN_UPDATED: publishStory(); // Comes here after the new permissions are requested break; } } } } Implement onActivityResult() @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResu

Categories : Android

Facebook does not logout when using django-social-auth social_auth disconnect
socialauth_disconnect will remove the association between the Facebook account and the User account in your application, as if the user never hit the socialauth_begin link. There's no way from django-social-auth to logout your Facebook account, to make that possible the Facebook SDK might be needed (never did that so I'm not 100% sure), since to make that possible I guess some cookies will be removed, and to do that the script must come from the same domain.

Categories : Django

Django Social Auth:Get email from linkedin,twitter & facebook
Twitter doesn't disclose emails, to retrieve Facebook email you need to define FACEBOOK_EXTENDED_PERMISSIONS = ['email'], LinkedIn email is retrieved automatically. Emails are stored in the user model under the email attribute. Profile picture can be stored by defining this settings: TWITTER_EXTRA_DATA = [('profile_image_url', 'profile_picture')] LINKEDIN_EXTRA_DATA = [('picture-url', 'profile_picture')] Facebook profile picture is accessible by API and not sent during the auth processes. You can define your pipeline to store it like this: from django.utils import simplejson from social_auth.utils import dsa_urlopen def facebook_profile_picture(backend, user, social_user, details, response, *args, **kwargs): if backend.name != 'facebook': return url = 'https://graph.f

Categories : Django

Android Facebook SDK "new permissions for a session that has pending request" error
Session.openActiveSession() returns a Session, use that Session instead. You are using Session.getActiveSession() to request the read permissions. Remember that the call() is asynchronous and it can also be called several times until the state of the session is opened. Your code will reach Session.openActiveSession()before the Session can reach the opened state. Also, you should check state.isOpened() instead of the session.isOpened() since you are waiting for the open state in which you can make a Request.

Categories : Android

Facebook App Alerts: Permissions - read and write for apps without FB login
The "problem" with your request is the read_friendlists permission, the guidelines in case of non-facebook login says: In this case, make sure that the only read permissions you request are public profile and friend list. Also the offline_access han been deprecated and not useful anymore So you should ask for read_friendlists in a separate request, the alert does not affect the functionality of the app but maybe it will affects other things like quota or apps store. Hope this helps

Categories : Facebook

Facebook warning for app: asks for read and write permissions at the same time
You need to include Extended Permissions to be able to use "publish_actions". This guide explains how to set permissions and publish a post to a wall. Esentially, the required permission as stated earlier is included like so: private static final List<String> PERMISSIONS = Arrays.asList("publish_actions"); To publish a story, they have even provided the necessary code for you which also utilises the "publish_actions" permissions: private void publishStory() { Session session = Session.getActiveSession(); if (session != null){ // Check for publish permissions List<String> permissions = session.getPermissions(); if (!isSubsetOf(PERMISSIONS, permissions)) { pendingPublishReauthorization = true; Session.NewPermissionsRequest newPermissionsRequ

Categories : Facebook



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.