Integration with Facebook Discussions - facebook

I'm a newbie with Facebook programming and I'm trying to integrate my Desktop application written in Windows with Facebook discussions. My desktop application should be able to read all messages posted on the Facebook discussions board and write into a file on the local system.
Is there any way for retrieving/accessing the groups messages (in the discussion board) for a specific group (guid) using the API or FQL queries? Pls. advice. Any explanation with programming code snippets will be helpful. Thanks in advance.

As facebook will close discussion in a few days, it may be not relevant info for you, but...
No, facebook doesn't provide ani API to get topics/comments from discussion board. We have done our http://apps.facebook.com/discussions_parser/ by simply parsing pages with selenium(htmlUnit couldn't get a non bookmarkable ajax loaded pages).

Related

Why put "?ref=" in url?

Lots of sites adds "?ref=###" in their URL, facebook/imdb etc. Now I checked this question and it appears that the reason is to keep track of what "referred" the users to that page. But I don't understand, what's the point of doing that? Is it for analytical or functional purposes?
As David said in the comment, it could be for any purpose they'd like.
In case of Facebook, it is mostly used for statistical tracking. It helps developers to understand where their traffic is coming from so that they can better optimize their Facebook integration. This data can also be seen in the App's insight under Referrals. According to one of the comments in the question that you've linked, a functional use of ref=ts parameter it to disable the mobile redirect, so some Facebook app developers use it intentionally to serve mobile users the desktop version of the site.
You can find more info at: Fbdev Ref Wiki and Referral Tracking documentation.

collect picture from comments in facebook page status

I currently need to collect pictures-comment (someone comment by pasting a picture) from facebook page group
I have done some research and find that
1.Support for this hasn't yet been added to the Graph API and as with many of the other messaging APIs, it's currently only avaialable for testing (i.e you must be a developer of the app to use it presently)
from
View attachments in threads
2.You have to use the old php SDK until graph supports attachments
from
Posting Attachment Facebook Graph API
could any one provide some codes to me?
I need to know
Are the two approaches really works?? If yes, then... If no, I guess i will need to write/find a crawler (but it again sounds difficult as facebook group page is dynamic web)
What should I do if I want to follow 1st approach?
Should I register as developer and set up an app and...? (I have no experience in setting up facebook app and would appreciate any useful step-by-step tutorial)
If I am going the 2nd approach (php SDK), are there are tutorial as I have no idea what should I do next.
I know java, c++ and little js but facebook apis are something really new to me.
Really appreciate any help.

Actionscript 3 Facebook integration

I am developing a flash game and I want to integrate it with Facebook. It should be very simple integration. My app only need username and e-mail address. I searched the web not I still don't know how to do it. It seems to me very complicated.
All I want is to connect my app to Facebook through Actionscript SDK, with few simple functions.
Can someone help me with a code to do that...I'll be very thankful guys :-)
Well, it's a general question, but here are a few links that might help steer you in the right direction. The first link has the SWC library and some examples:
Facebook ActionScript API resources:
libraries and examples
API documentation (though fairly sparse)
Adobe page
On their page, Adobe links to a tutorial / walkthrough for building a mobile Facebook app that's pretty helpful, though it expands on a desktop-based article and references it regularly, so that can be a bit confusing, but it does get the job done.
Then you need to understand the Facebook Graph API - basically Facebook passes around objects that contain data pertaining to the user, their friends, etc (and of course, passing around this data is subject to the permissions your app has setup). Facebook provides an online tool (Facebook Graph API Explorer) that let's you explore these objects for your own account.
Pouring over this information, I got my first flash-based mobile app talking to Facebook in a few hours. There you go, ask a generic question, get a big swath of links to read that are only semi-related to your question. =D

Creating new facebook apps with graph api?

To my knowledge it isn't possible to create new apps with the graph api from facebook.
But i have seen several tab makers which are apparently able to generate new apps (one of them is the timeline tab maker from 247GRAD). Is this huge number of apps really manually generated?
I would appreciate it very much if someone could give me a hint, how those apps work.
It is not possible to create an application using Graph API.
What you see in the case of Page Tab Applications is generally one application (or several just to have different application icons/images) displaying different content based on page id (from signed_request) for Page is running on.
Many companies are today oriented to design Facebook apps (or tabs) to be integrated in profiles, groups and fan pages. Well Facebook encourages apps development by making easy to do with Graph API with any programming language like PHP5 at first, jQuery, JavaScript, Java, XML...
And Apps or tab makers as you said are developed to help to generate new apps, I think it would boring for a developer to create an app for form contact everyday for each new customer, so with some magic (sure with any programming language) he'll can generate many apps.
So it's a Facebook app that creates Facebook apps!
You could learn about Facebook Graph API from Facebook Developers Documentation on https://developers.facebook.com/docs/reference/api/
And learn this tutorial from Facebook on https://developers.facebook.com/docs/opengraph/tutorial/ or from an other web sites (Try always to read new tutorials because Facebook API always changes).
Also you can read books, I advice to read this at first : http://books.google.tn/books?id=MnbpygAACAAJ&dq=inauthor:%22Shashwat+Srivastava%22&hl=en&sa=X&ei=c5RoT81ek_fhBNXZgbcJ&ved=0CC8Q6AEwAA and second, http://books.google.tn/books?id=Ec9OkpsrCf8C&pg=PA131&dq=facebook+graph+api&hl=en&sa=X&ei=tpBoT5uKG-OO4gTb-ajaAg&redir_esc=y#v=onepage&q=facebook%20graph%20api&f=false
Don't hesitate to ask.
Best regards,
Ali

Facebook UI documentation

I am trying to create a bookmarklet to process some Facebook data about my contacts, what will possibly require to load another profile pages and see who my friends are.
I am trying to know which urls should I query to get this information. And also how to interact with FB's UI libraries and/or elements.
Is there any documentation for this?
You probably are looking for Facebook JavaScript SDK.
Here is documentation on the FB.ui(): http://fbdevwiki.com/wiki/FB.ui
EDIT: it's updated by user contributions and lately it hasn't been changed much