Questions tagged [restfb]

RestFB is a simple and flexible Facebook Graph API client written in Java. It supports access to the Graph API (Pages API, Business Manager API and many more) and additional access to the messenger platform (Webhooks and Send API).

389 questions
2
votes
0 answers

Exception: Duplicate OG Action -- These exact parameters have been used to publish a previous action with ID

We are facing below exception, while create multiple ads for "Mobile App install" Marked for retry: Received Facebook error response of type Exception: Duplicate OG Action -- These exact parameters have been used to publish a previous action with ID
2
votes
1 answer

restfb api not support when user logout from facebook & access key generate every time

I am using RESTFb api to post a message on facebook wall my code is: val facebookClient: FacebookClient = new DefaultFacebookClient("access_key") def publishMessage(msg:Mesage): String = { val publishMessageResponse: FacebookType =…
2
votes
0 answers

RestFB : Retrieving Attachments present in private messages

I need to retrieve the attachments present as a part of private messgaes posted to my account in Facebook. I am using restfb api to do the same but am getting only the text message as a response, no link to the attachments. Is there a way to get the…
sakhan
  • 41
  • 4
2
votes
2 answers

Post on Facebook Page with Application Access Token

I have a facebook page, a facebook app and an administrator facebook account of that page. Now i want to publish a link on that page (i don't care how). Since now i did that by getting a user access token of the admin for my app, then get the page,…
Nick Russler
  • 4,608
  • 6
  • 51
  • 88
2
votes
1 answer

Check if a facebook user is connected to the application from server side in java

My application is written with JSF framework. There is a method in JavaScript API that allows to recognize if a user is connected to the application FB.init({appId: "#{settings.fbClientId}", status: true, cookie:…
jjd
  • 2,158
  • 2
  • 18
  • 31
2
votes
0 answers

Received Facebook error response of type CurlException

When I publish an action (as described here https://developers.facebook.com/docs/opengraph/tutorial/#publish), sometimes I'm receiving a cURL error from Facebook: com.restfb.exception.FacebookGraphException: Received Facebook error response of type…
jibees
  • 546
  • 2
  • 4
  • 17
1
vote
0 answers

Publication on facebook App --> OK but invisible on facebook page

I need to post a message from my facebook App to the facebook Page linked. I explain how I do, please say me if it's no good. Thx. 1) I have created a facebook App. So, I have a clientID and secretKEY. 2) I go on the advanced setting of my…
1
vote
2 answers

How to unlike a post that a user has liked in facebook in android

I have written facebook android application using restfb . For unlike a post , Facebook Graph Api says to send an Http delete to https://graph.facebook.com/postid/likes with the access token The sample code is String postURL =…
Abi
  • 4,718
  • 4
  • 20
  • 29
1
vote
1 answer

Facebook Graph API Not Accepting Thumbnail

I am attempting to upload a link/thumbnail combination to my feed using RestFB. The post works, but the thumbnail image is not showing up. Here is the link I am…
robmadden
  • 41
  • 8
1
vote
0 answers

not getting access token or too many redirects

According to this page I am setting the url to get access_token. Below is my redirectUri string and urlForAccessToken string respectively. String redirectUri = "http://xxxx.mine.nu:8081/myfacebookapp/myfbapp"; String urlForAccessToken =…
1
vote
1 answer

Fetch information from restfb

I am new and Please be patient If I am wrong. This below code is from RESTFB to fetch informations from profile. How should I extract name, id and pricture seperately. Connection myFriends = facebookClient.fetchConnection("me/friends", …
Vinay
  • 6,891
  • 4
  • 32
  • 50
1
vote
1 answer

Unable to see the posted message in facebook immediately

I wrote a small message and I posted to facebook wall. When I try to view this post message using the following code to search post messages: public Connection searchMessages() { Connection messages =…
diya
  • 6,938
  • 9
  • 39
  • 55
1
vote
1 answer

FQL Photo Query

I am attempting to query the Photo table through FQL using this query: SELECT owner FROM photo WHERE pid="XXXX" For some reason, no matter what pid I choose, I get an empty set response: Facebook responded with HTTP status code 200 and response…
1
vote
1 answer

fql for place name and place id useing com.restfb

I have coordinates as latitude and longitude, I want to get a list of place from facebook using facebook query (FQL). Does anyone have an example of how to to that? I am also fine with using the graph api
tribal
  • 653
  • 2
  • 13
  • 26
1
vote
0 answers

Posting app generated apprequest to other facebook users in Java

Ok, what I want to do seems like an extremely core part of the facebook apps experience, and yet I can't find any decent examples. I just want to generate an 'apprequest' to notify another user when something of interest has happened when a friend…
Kieran Harper
  • 1,098
  • 11
  • 22