facebook-java-api

Is there an up-to-date Facebook Java SDK? [closed]

帅比萌擦擦* 提交于 2020-01-01 04:50:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I can't seem to find one that's been updated recently. If none, is there a good Java library for doing the necessary signature verification, base64 decoding, etc operations needed to interact with Facebook's API? UPDATE : I'm using Spring Social Facebook to aid in working with Facebook. It doesn't handle

Get comments from facebook ads (marketing)

我与影子孤独终老i 提交于 2019-12-20 03:30:08
问题 After I make an ads for my post on facebook ads manager. Facebook Ads Manager show me how many comment belong to this ads. This is very important for me to verify the effective of my campaign. In programing aspect: Is there's any way to count number belong to my ads like Facebook Ads Manager (I describe above). I have used both Java Facebook Ads SDK (Ads Insight module from https://github.com/facebook/facebook-java-ads-sdk) and Graph Explorer Tool, they both return "comment" field or "like"

How can i get access_token and then use it?

不羁的心 提交于 2019-12-07 18:33:35
问题 In my web application i want users to login with their facebook account. I am doing it by redirecting url. response.sendRedirect("http://www.facebook.com/dialog/oauth/?scope=email,user_about_me&dispplay=popup&client_id={app_id}&redirect_uri=http://example.com/index.jsp&response_type=token"); At index.jsp i am getting access_token in url. But in request there is no access token. how can i get access token here and then fetch user email. url at index.jsp looks like this: http://example.com

How can i get access_token and then use it?

泪湿孤枕 提交于 2019-12-06 11:44:37
In my web application i want users to login with their facebook account. I am doing it by redirecting url. response.sendRedirect("http://www.facebook.com/dialog/oauth/?scope=email,user_about_me&dispplay=popup&client_id={app_id}&redirect_uri=http://example.com/index.jsp&response_type=token"); At index.jsp i am getting access_token in url. But in request there is no access token. how can i get access token here and then fetch user email. url at index.jsp looks like this: http://example.com/index.jsp#access_token={access_token} Thanks in advance. I actually just got this working in my JSP project

facebook real time update in java example

不羁的心 提交于 2019-12-05 06:41:23
问题 I'm working on a project which uses Facebook Graph Api to collect information about the public posts. There is a need to update this data Real-Time when changes come to this posts. i have seen a real time update mechanism using call back url https://developers.facebook.com/docs/graph-api/reference/app/subscriptions/ and https://developers.facebook.com/docs/graph-api/real-time-updates/ .. But i didnt get any idea of doing this in java. Please somebody help me using an example. 回答1: Real time

Upload photo to Facebook with Facebook Android SDK in Android

笑着哭i 提交于 2019-11-26 05:54:03
问题 I\'m new to Android. I\'m searching for load photo to facebook by authorization, getting access_token. How to do this? Please give me a sample code in Java. 回答1: Just posted here the simple way to upload a photo: android facebook publish photo Code: byte[] data = null; Bitmap bi = BitmapFactory.decodeFile(photoToPost); ByteArrayOutputStream baos = new ByteArrayOutputStream(); bi.compress(Bitmap.CompressFormat.JPEG, 100, baos); data = baos.toByteArray(); Bundle params = new Bundle(); params