pythontr.com
{ "name": "Pythontr.Com", "category": "Websites", "id": "1111111111", "access_token": "kullanılacak token" },
wget [url]https://download.github.com/facebook-python-sdk-ad63a58.tar.gz[/url]
tar xzfv facebook-python-sdk-ad63a58.tar.gz
cd facebook-python-sdk-ad63a58
python setup.py install
#!/usr/bin/python #-*- coding:utf-8 -*- import urllib import pycurl import StringIO import sys import facebook TOKEN = "**************" ADRES = "[url]https://graph.facebook.com[/url]" API = "******************" API_USER = "***************" ISLEM = "/feed" #------------------------------------------------------------------------------ # duvar a gonder def gonder(sName, sLink, sCaption, sDescription, sPicture, sMesaj, sToken): graph = facebook.GraphAPI(sToken) content= sMesaj params = { "name" : sName, "link" : sLink, "caption" : sCaption, "description": sDescription, "picture" : sPicture } response = graph.put_wall_post(message=content, attachment=params, profile_id=API) print response
Yorumlar