I've tried to access Uber API.
Couldn't find in the documentation where I can get the scopes API, because I can't access the API without it. Documentation send to the Oath page in the Developer's page, but there is no functionality there to choose a scope.
Would be very glad to any help.
Related
Facebook recently released a step-by-step documentation for using a GrapAPI to manage Instagram messages. To obtain the access token to use it, it's necessary to create an application in the developer center, enable login via Facebook and include the permissions "instagram_basic", "instagram_manage_messages" and "pages_manage_metadata" but to activate these options it's necessary to submit various information for approval as statement of how the integration works and descriptions of the usage flow. I don't have access to this information because I can't develop an integration without it being approved.
It's not possible to use the provided test user as the pages raised by him cannot be linked to Instagram accounts.
Tutorial followed: https://developers.facebook.com/docs/messenger-platform/instagram/get-started
Someone with some experience with the Facebook API could give me a light on how to obtain the token with access required and proceed the tests?
I have done the tutorial as well, I faced the same problem. To enable instagram_basic, instagram_manage_messages and pages_manage_metadata without app review you need to create a test-app. For test apps all permissions are granted without review.
Instructions on how to create a test-app
Another usefull tipp: If you are wondering why you need to implement facebook login to access the instagram messaging api, the logic is the following: You need to implement login to then use your own implementation to logg in your own account and obtain the page access key that will let you do api calls to the instagram messaging api. This process is obviously overkill and instagram is working on a way of getting that access token through the developer dashboard.
For now to obtain that access token you need:
implement facebook login as a simple html website and console log the response. Be sure to add the required permissions to the data-scope attribute of the facebook login button:
<div
class="fb-login-button"
data-scope="public_profile,email,instagram_basic,instagram_manage_messages,pages_manage_metadata,pages_messaging"
></div>
deploy to a website that has https enabled (logging in from
localhost will only work if you use a tunelling service like ngrok).
Open your website that has facebook login implemented and logg in with your facebook account that is also linked to the target instagram account and also is admin of your test-app.
get the access token from the response to call the other API endpoints.
The documentation on endpoint /{page-id}/nativeoffers clearly states that we need the page-id and pages_manage_ads permissions to access offers on a public page. Also the person who requested the token should have ADVERTISE role on page. Here is the link to the documentation of graph API.
Current Situation
I have the pages_manage_ads permission on specific user_token.
The user is admin of the facebook page and have role in developer console app too.
The app is yet in development mode.
Problem:
When I try to access the offers of the page using the endpoint /{page-id}/nativeoffers, it returns me empty data despite the fact that offers are present on the page I am trying to access.
Anyone who can help me with this?
I have recently created a Linkedin App and would like to use the edit profile API, which the w_fullprofile API scope. My application has access to the r_emailaddress, r_liteprofile and w_member_social scopes by default. Does anyone know how I can obtain access to the w_fullprofile scope?
What I have tried
An older question about obtaining r_fullprofile permissions suggested applying to one of the partner programs. So far I cannot see how to apply for anything other than the Marketing Developer Platform, which does not appear to provide access to the Full Profile APIs
I want to know - is it possible to add advertising on facebook in test mode? Functions "adcampaign" goes well, but "adgroup" requires a balance . Is this necessary?
Testing the Ads API
Once Facebook has whitelisted your application, you can test the API
calls using the Graph API Explorer tool. The Graph API Explorer
enables you to test almost any query you would like to make to the Ads
API; read the blog post for all the functionality provided. Please be
sure to select your whitelisted application from the "Application"
drop down as well as the ads_management permission in the pop-up
dialog (under extended permissions) when generating your access token.
The API is live, so Facebook does not provide a sandbox where you can
test your code.
For more information see: http://developers.facebook.com/docs/reference/ads-api/
If your app is not whitelisted yet, you can always use similar APIs from simpleapi.launchrock.com
I think there is a sandbox version also.
When looking at the Graph API documentation, I noticed that in this page:
http://developers.facebook.com/docs/api
there are links to say, my own friend list (http://graph.facebook.com/me/friends) that have an access token that seems to be generated out of nothing and has very little privileges.
What is this token? Is there anyway to generate it myself without going to http://developers.facebook.com/docs/api?
Facebook has implemented oauth v2 draft
You need to have active user session or permanent tokens (which could be taken from active user session, which permits permanent access grant)
More detailed at: http://developers.facebook.com/docs/authentication/