Facebook opengraph (#2) Service temporarily unavailable - ruby-on-rails

i have an app on which users post their shows. I want to add rsvp_events so that users can post their activity on facebook whenever they click on going button.
I have setup everything, everything seems ok, but when i try to post the activity on facebook using Koala i get the following error,
"error": {
"message": "(#2) Service temporarily unavailable",
"type": "OAuthException",
"is_transient": true,
"code": 2,
"fbtrace_id": "H7WRzXo7d3C"
}
}
i am using koala gem and i am doing like this ,
#facebook = Koala::Facebook::API.new(oauth_token)
#facebook.put_connections("me", "namespace:go" , show: "http://samples.ogp.me/173451500015976867")
Any Solution?

Related

Getting error "AuthenticationError" when accessing user photo using Graph API

We have an application that uses the MS Graph API to access users information along with getting user photo.
Application has been working fine until 2 months ago.
Now we're seeing an error "Error authenticating with resource" when accessing photo
Tried getting photo via MS Graph explorer using https://graph.microsoft.com/beta/me/photo/$value.
All delegated permissions have been granted.
Got an error:
{
"error": {
"code": "AuthenticationError",
"message": "Error authenticating with resource",
"innerError": {
"date": "2020-08-10T20:10:18",
"request-id": "cf458687-6aa9-49a6-a346-964daafefcc2"
}
}
}
The same result was using Postman with access_token.
Accesss token contains all needed permissions: https://www.screencast.com/t/BNeKELVaYEt
{
"error": {
"code": "AuthenticationError",
"message": "Error authenticating with resource",
"innerError": {
"date": "2020-08-10T20:22:49",
"request-id": "704bd253-0953-48e1-857e-ec51f7651ed5"
}
}
}
Getting user profile works fine in both places.
We're also experiencing problem updating image in user list in Azure AD.
When we change user profile photo based on https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-users-profile-azure-portal, photo is not updated in user profile, however when adding user as owners to API registration, image is shown correctly.
Another strange thing that logged in user's photo(in top right corner) is different from the photo of same user from the list.
https://www.screencast.com/t/60rTsONZjzs
Still I am able to see correct image by accessing https://account.activedirectory.windowsazure.com.
Src for photo from there is /UserProfileImage/UserProfileImage?objectId={user_id}
Could you help me to figure out whether I am doing something wrong, or something does not work properly.
Thank you in advance!

Get follower List with userID Instagram

How can I get Following/Followers List with UserID rather than "self" using Instagram API, the service for getting list of follows for current instagram user logged in and it works
https://api.instagram.com/v1/users/self/follows?access_token=ACCESS-TOKEN
I try to modify self with an ID of Instagram User
https://api.instagram.com/v1/users/6675420875/follows?access_token=XXXX
but without success,the response is:
{
"meta": {
"code": 400,
"error_type": "APINotAllowedError",
"error_message": "you cannot view this resource"
}
}
this user "6675420875" already invited and added in sandbox mode.
I know the supported Api of Instagram doesn't support this anymore since June 16 but is there any workaround for this?
You cannot get followers/following for any user other than logged in users anymore, As of June 1 2016, you can only get followers/following of self and also only if you have been approved permission for following_list before Oct 1 2017.

Facebook API post not available

With certain facebook posts, that are seemingly completely public (for example) I am unable to pull their information from the graph API no matter what combination of permissions / application / access_token I give it.
Even worse, I just get a generic error:
https://developers.facebook.com/tools/explorer?method=GET&path=10153801897821136&version=v2.5
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"fbtrace_id": "GU3r05xB4VK"
}
}
It seems that for whatever reason facebook has decided that I shouldn't be able to view this post (likely because of privacy settings) but I can very obviously view the actual post on facebook, even as a logged out user.
Any thoughts as to how to get this to work via the API?
Within Facebook API, a public post that can be retrieved, refers to a post published by a Facebook page not a Facebook user profile.
In order to view this post, you will need user_posts and user_friends for the owner of that video and the querying user.
So for querying userA to get a public video from userB (who is a friend of userA), the permissions for both are
{
"data": [
{
"permission": "user_friends",
"status": "granted"
},
{
"permission": "user_posts",
"status": "granted"
},
{
"permission": "public_profile",
"status": "granted"
}
]
}

I m trying to access google places api with following url but unable to get results

https://maps.googleapis.com/maps/api/place/textsearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=cruise&key=api_key
but unfortunately i m inable to get the result and it displays an error message:
{
"error_message": "This IP, site or mobile application is not authorized to use this API key. Request received from IP address 106.67.62.253, with empty referer",
"html_attributions": [],
"results": [],
"status": "REQUEST_DENIED"
}
You need create a project from google developer console. link OR link 2 add create a new Project, add credential, get API and Enable
location service. This may help for you.

Google+ Domains API Not Configured

When I try to post an activity to Google+ I get the error:
{
"error": {
"code": 403,
"message": "Access Not Configured. The API (Google+ Domains API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
"errors": [
{
"domain": "usageLimits",
"message": "Access Not Configured. The API (Google+ Domains API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
"reason": "accessNotConfigured",
"extendedHelp": "https://console.developers.google.com"
}
]
}
}
I know this question has been asked before here, but I have a different message in my error. I've also enabled Google Domains API in the console. I'm using a Gmail account and I also receive circles and contacts information with the following scopes:
https://www.googleapis.com/auth/userinfo.email
https://www.google.com/m8/feeds https://www.googleapis.com/auth/plus.login
https://www.googleapis.com/auth/plus.stream.write
https://www.googleapis.com/auth/plus.me
My Post body is:
{
"object": {
"originalContent": "Happy Monday! #caseofthemondays"
},
"access": {
"items": [
{
"type": "domain"
}
],
"domainRestricted": true
}
}
Found out this feature is only available for Google Apps customers not anyone else.
Reference
Have you created (or using) the API_KEYs in your Google project?
If not, go to Google developer console and select the credentials section under APIs & Auth and create the API key relevant for your application.
If you already have a key, try regenerating a new one

Resources