Use oauth-php to fetch own company updates with LinkedIn - oauth

I need to use oauth-php to authenticate with the LinkedIn API. I want to fetch LinkedIn status updates from my own company's LinkedIn profile. LinkedIn gives a great example how to retrieve your own LinkedIn profile on their website with the PHP OAuth extension, but I can't figure out how to do it with the oauth-php library.

Per the Company Update docs, you would make a call using oauth-php to the following endpoint:
http://api.linkedin.com/v1/companies/{id}/updates

Related

How to use instagram API for Login

I have been trying to implement the OAuth flow for Instagram login with Instagram official APIs but seems like a lot has changed since June 2020 and I haven't had any luck to get any help for the Instagram Oauth login flow that can return a user email which can later be used to keep track of the user registration via Instagram API.
Instagram official documentation says that they don't recommend using Instagram Basic Display API for login here:
https://developers.facebook.com/docs/instagram-basic-display-api
Can someone guide me on how to get the user information like email or at least username in return from the Instagram API.
Any help will be highly appreciated. Thanks
Unfortunately currently it is not possible to do with IG Basic Display API.
Please check the Documentation
It is not possible to get an email from Basic Display API. You will not be able to get the email from the API responses.
You can get the user ID from Instagram when you will exchange the code obtained via Authenticate to access token. Later on when you will have the valid access token you can get the username.
I would recommend checking out Getting Started from that API: https://developers.facebook.com/docs/instagram-basic-display-api/getting-started it shows how to get user_id (step 5) and username (step 6).

LinkedIn API 2 and VanityName from r_basicprofile

LinkedIn recently updated their API and now I unable to get public user profile url(by VanityName) during OAuth2 authentication phase. Looks like r_basicprofile is not available anymore.
Is there any chance to get this url and if so, could you please describe how?
According to the following LinkedIn documentation Find Profile by VanityName API
The use of this API is restricted to those developers approved by
LinkedIn and subject to applicable data restrictions in their
agreements.
But there is no any information how to apply to this API. How to apply to this API and get the appropriate permissions for r_basicprofile?
I think you need to become a partner although I'am struggling with the same thing
https://fullfabric.zendesk.com/hc/en-us/articles/115007056847-Setting-up-a-LinkedIn-application-and-Applying-to-become-a-LinkedIn-Partner

How to unlink an app from twitter account?

I used API from https://github.com/abraham/twitteroauth
to integrate login feature in my website using oAuth api.
If user want to unlink app from twitter account then how to do that?
I tried to find method in sdk but didn't found.
The user goes to Settings->Applications on twitter.com to revoke access. Or, you can use the oauth/invalidate_token in your code to reset the token and require the user to login again to get a new one.

How to make instagram login with AWS Cognito Federated Identities

I am trying to implement social media login with AWS Cognito (Mobile services)for iOS app.AWS directly supports login with Amazon, Facebook, Google+ and Twitter. But i want to implement instagram login with AWS Cognito. How can I achieve this. Please look at the Screen Shot,
In the screen shot you will see provider sections like Amazon,facebook, google and Twitter and the rest of the three are for other. Please let me know which one will work for INSTAGRAM login in rest of the three provider OpenID, SAML and Custom. And how to implement it??
Unfortunately there is no out of box support for Instagram, so your best bet is to setup Instagram as Custom provider. Please refer to this doc and blog to learn about setting up custom provider.
Basically your app needs to interact directly with Instagram to get Instagram User's unique id. That id can then be used as developer user identifier in GetOpenIdTokenForDeveloperIdentity to get Cognito Identity Id and Token.
You can take a look at auth0, maybe this meet your requirements.
The instagram has stopped supporting authentication. You can use Instagram Basic Display API allows users of your app to get basic profile information, photos, and videos in their Instagram accounts.
Check below links -
1)https://developers.facebook.com/docs/instagram-basic-display-api
2)https://www.instagram.com/developer/
They mentioned, "Authentication — Instagram Basic Display is not an authentication solution. Data returned by the API cannot be used to authenticate your app users or log them into your app. If you need an authentication solution we recommend using Facebook Login instead".

Sign in with LinkedIn

when click on linkedIn button from my app linkedIn redirect to linkedIn App
If app is not install that time get the message please install the linkedIn.
I want to simple SignIn with LinkedIn like google SignIn.
So please give me proper response.
Try using LinkedIn iOS SDK
it provides
Single sign-on (SSO) authentication, in conjunction with the official LinkedIn mobile application.
A convenient wrapper for making authenticated calls to LinkedIn's REST APIs.
Deeplinking to additional member content in the official LinkedIn iOS app.
A sample application that demonstrates all of the SDK's features.

Resources