Facebook api in python and sources to master it! - python

I've good enough knowledge of python and I want to use facebook python api and for that I've got all the API key and App Secret etc from the developer site. Now what I want is a good source to provide me with good knowledge how to authenticate and retrieve data like statuses etc using the Python IDLE(in win7). I searched the google but unable to reliable one! Thanx people! :D

You probably want to use the python version of the facebook-sdk. It contains a few examples.

Related

Difficulties in Sage One integration with Django (Python)

I have developed an one page application using AngularJs and Django(Python). I want to integrate Sage One Application with my application for accounting purpose(country US).
I have gone through so many links and blogs in google and what I have found that all the libraries are written in PHP, Ruby and some other language. And I could not find any solution.
This is the link I followed : https://developer.columbus.sage.com/docs#/us/sageone/core/gs-welcome
Then I found another link https://pypi.python.org/pypi/sageone-api-client/0.0.2 for the integration with Python. And here, We need an API Key. I tried to get the API Key by following their instructions. But after asending some email and all still they are asking me to provide some company information and all. And i just lost the process. So Can any one tell whether I am following the right way ? Or I have to build some code as it was written in their PHP Example? Is there any way to get the API key for development purpose?
Any help will be appreciated.
Thanks.

What python library I should use for facebook OAuth and OpenGraph

I have designed a Facebook application and need to add OAuth, Open Graph for complete functionality. Considering that I know nothing about Open Graph and little JS, I'd like to use a small wrap-up (python lib) which will provide the those features..
I searched over Google, stackoverflow and found few projects which provide some cool features but I am unable to choose..
python libs:
django-social-auth
fandjango
facepy
pyFacebook - I think this doesn't offer OAuth.
I also use Google Data API in my project. So, the better option would be django-social-auth but I am not sure if I can do Open Graph with it..
Can anyone tell me what is the best, maintained, good lib?
(Please do mention if its not in the above list)
django-social-auth is really great if you want to build a website that allows users to log in with Facebook, but if you're building an application on Facebook.com you probably want to use something like fandjango. Either way, you will need a different kind of library (like, say, facepy) to interact with Facebook's API once you've retrieved an access token from the user.
Full disclosure: I am the author of fandjango and facepy.
I would highly suggest django-social-auth. Any library than can parse JSON will support Open Graph as FQL and Graph API data can all be retrieved from Facebook's API (REST).
Good luck!

How do I access Facebook wall feed in python?

I am trying to make a little desktop alert script that will tell me if there is a new post on my Facebook page's wall. It would be nice to see if I'm getting any new likes as well but really I mostly want to access my wall feed.
I don't need help parsing it or anything like that (I'm literally just going to compare a stored feed with how it is currently to see if there is a change once every 2 minutes or so) I just need to know how to access it.
You can pull the content in your profile feed (wall) as a JSON object using the Facebook Graph API. You can check out the details here: http://developers.facebook.com/docs/reference/api/
Like McOcoonor said you should use the Facebook Graph API as documented here:
http://developers.facebook.com/docs/reference/api/
If you want your application to have continuous, long-term access to your Facebook information then you need to add the offline_access permission flag to when the app requests the access token. Documented here:
https://developers.facebook.com/docs/authentication/permissions/
For doing this all in Python you might be interested in this S.A. Question: Facebook Graph API and Django.
You can try to use a library to access your facebook wall. It requires register your application on facebook but it's easy to do http://developers.facebook.com/setup/
Then you can check out a python wrapper to the facebook api -> http://code.google.com/p/pyfb/
Or download it from pypi -> sudo pip install pyfb
If you are using facebook sdk for python (https://github.com/mobolic/facebook-sdk), you can use get_connections method(http://facebook-sdk.readthedocs.io/en/latest/api.html#get-connections)
import facebook
graph = facebook.GraphAPI(access_token)
feeds = graph.get_connections('me', 'feed')

Bloomberg Server API and Ruby/Python

Im looking to write a new application in ruby/python which uses a feed from bloomberg and am stuck trying to find any documentation for using (or even setting up) Bloomberg Server API with either of these languages.
Does anyone have any good links to tutorials for this or maybe some boilerplate code to get set up? Or is it best to just stick to the three main supported languages?
The Bloomberg Open API (BLPAPI) v3.5 release now includes a native Python SDK.
http://www.openbloomberg.com/2012/11/21/open-api-blpapi-v3-5-x-released/
Did you check out some questions at SO on this. It might help you
Bloomberg API request timing out
Asynchronous data through Bloomberg's new data API (COM v3) with Python?
Resolver is an spreadsheet implementation in IronPython and has a very good integration for Bloomberg API
http://www.resolversystems.com/documentation/apidocs/MarketData_Bloomberg.html
Here is a simple Client access API which I wrote with the help of the mentioned links as well as some others. Not everything is implemented but it is a good start.
https://github.com/bpsmith/pybbg

How to script a google search without google license key?

I'm looking at 'pygoogle' python library for google search, call from my python script. But google doesn't give out license key anymore, and looks like pygoogle needs license key to work.
Does anyone have suggestions of libraries to use for scripting web searches? Languages doesn't matter. It can be in python, perl, lisp, forth, or whatever. Of course, it needs to get around the license key issue.
Or, would yahoo, excite, or any other sites provide apis allow scripting searches for free?
Any comments are welcomed. I'm new on web searches.
Thanks.
Jay
They don't give out keys for the SOAP API anymore, because that's deprecated. But you can use their AJAX API, which is now the preferred interface. You can get a developer key here.
Your question made me look.
Yahoo! now offers a new search service called BOSS which looks very interesting.
Microsoft offers access via the Bing API
in case you are still looking - this is how (with ajax api in python): http://dcortesi.com/2008/05/28/google-ajax-search-api-example-python-code/

Categories

Resources