Access ograph insights from another app without admin? - api

Been trying to get insights data from a page in another app (without admin), yet no luck.
Been using Facebook API to access 'insights' through Open Graph. I have two Facebook profiles:
one being the app holder
the other being some Facebook page not
related to the app.
I am able to get the data when the 'app holder' has admin rights on the 'Facebook page'.
I saw Odata app and tried that, yet I wanted to keep it within the Facebook app control.
I have also linked the application with the page, hoping that will work (yet no joy).
Am I missing some 'Facebook App setting' that I can use or is this not possible?
Any thoughts much appreciated.

Read the instructions on this page, it explains how to do it: obtaining a permanent facebook oauth access token

Related

can we retrieve Facebook leads without Facebook APP Review

I have created an App in https://developers.facebook.com/apps and I have one Facebook page, in that I have created ads and I got some leads, those leads I can see in Leads Center in respective page.
So I need to retrieve this Leads into my server.
When I run this below API in browser excel file is downloading directly and I can see all my leads in that file https://www.facebook.com/ads/lead_gen/export_csv/?id=XXXXXXXXXXXXX&type=form.
By using my App(which I created in developer) done some setting and I created webhook for user,pages and permission, in permission I can see lead_retrival, ad_reads and I have tested, those tested leads are coming into my server by given webhook URL.
But how can I get my actual leads which is in Lead Center belongs to my page and is there any APIs are available ?
Is APP review necessary to retrieve leads from form or any other option(I tried Zapier but that is not I am looking for).
what I tried:
I am working on my server so I went through with this link PHP cURL to verify Facebook API login access_token on server?, and created all access tokens by my app and I am getting Success. Login is valid
then I did not understand next what I have to do.
Can any one help on it please?
Thanks
Sandeep

External Login in react native with JWT authentication token asp.net core

As I am new to mobile development and I am using react native. I am trying to implement external login(Facebook/Google) login, I got libraries using which I am able to get the details of user profile such as firstName, lastName, email from both Facebook and Google. Here my question is, is it right and safe to get details of the user profile, and calling register api to register/login and get the JWT token to land the application to home screen? Or is there any way that we can just click on Facebook/Google button by passing just provider name we can get all details from web api itself.
I feel, fetching the user profile details from web api is safer than getting user profile using react native library/sdk and then calling register api to register/login the same.
If there any link or Github reference please share the same for better and in details understanding.
Thanks In Advance.
You seems to have it figured out yourself. Call Google or other third party to retrieve user details such as email and name. Then call your own backend to register that user to your platform.
The next time user login using social login do a similar call to your backend to check if user with the details exist in your database and send a corresponding response back.
Check this link Google Login React Native. This reference is a little old one but might give you a heads up.
Note: You will need to have corresponding permissions enabled in providers developer console. Some cases you will get an access token after login/signup using social media. You will then need to fetch user data from corresponding provider using their api or SDK.

Firebase authentication: linking multiple provides

I followed the Firebase documentation to implement multiple authentication providers (Google and Facebook), and I am with the problem that I do not know how to solve.
Assuming my new User has Google providers and facebook with different emails is possible to perform the following login flow ?.
User enters the first app and resolves login with your Google account
Firebase create an account and link Google her provider.
The user exits the application.
User again performs login to the app, however this time he chooses the Facebook provider (which has different email Google).
firebase links the Facebook provider the account that is already linked to Google provider.
The Firebase documentation has a complete page dedicated to account linking. The samples in the page link to a Github repo where you can see the code in the context of an entire app that demonstrates it.
There's little use in use replicating the documentation here. If you're having trouble making a specific step work, share what you've done and the minimal code that shows where you are stuck.

Modifying Google OAuth2 login page

Is it possible to modify or show a more iOS friendly login page from googles oauth2 services? I'm not sure if I have seen a modified on before but i can't find any information on it. Any help would be appreciated.
I think the only change you can do is to provide your own logo as described here: https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2#OAuth2_Register
To make the login process more like a part of your application it is possible to open the login page in an embedded browser instead of open it in Safari, but you will not be able to change how it looks.

how to edit where facebook sends visitor after using the facebook "sign in" app

I have a site www.crazyfloridadeals.com and this is a licensed directory and it has a built in feature for "sign in" using your facebook account and in order to do this you need a developers App ID and App secret which I did set up, I got the app to work but two things need to be edited and I can't figure out how to do this,
After you use the app facebook sends the visitor to crazyfloridadeals.com/profile/#= which 404's how do I get the app to send them back to the Home page? I read every articl and forum but could not find anything - any suggestions are where to find this
When you use the facebook app it goues through the "permissions" and it asks do you want to all "my company" to post on your behalf? I don't need this as I am only looking for basic user info (just like screen shot attached) how can I adjust what permissions are being asked for?
I am new to this and am sorry if these are easy fixes
Having looked at your site, it appears that the FB login button is being passed the paramaters redirect_uri="http://crazyfloridadeals.com/members/facebookauth.php?destiny=http://crazyfloridadeals.com/profile/#="
and scope="email,user_birthday,status_update,publish_stream"
There should be a configuration screen if this is some sort of CMS for the FB login plugin. Otherwise there may be a configuration file somewhere in the code files itself. Of note, to remove the "post on my behalf" message, remove the 'publish_stream' from the scope variable. See this list for other FB permissions. You may need a FB Dev account to view it. Obviously, you will need to change "http://crazyfloridadeals.com/profile/#=" to just "http://crazyfloridadeals.com/"