1. Matthew Schinckel
  2. facebook-python-sdk

Commits

Chris Agerton  committed 4cc1032

Fixed profile url field in examples to reflect field name as link vs profile_url as per
http://developers.facebook.com/docs/reference/api/user

  • Participants
  • Parent commits bef40be
  • Branches master

Comments (0)

Files changed (4)

File examples/appengine/example.py

View file
                     user = User(key_name=str(profile["id"]),
                                 id=str(profile["id"]),
                                 name=profile["name"],
-                                profile_url=profile["profile_url"],
+                                profile_url=profile["link"],
                                 access_token=cookie["access_token"])
                     user.put()
                 elif user.access_token != cookie["access_token"]:

File examples/newsfeed/facebookclient.py

View file
                     user = User(key_name=str(profile["id"]),
                                 id=str(profile["id"]),
                                 name=profile["name"],
-                                profile_url=profile["profile_url"],
+                                profile_url=profile["link"],
                                 access_token=cookie["access_token"])
                     user.put()
                 elif user.access_token != cookie["access_token"]:

File examples/oauth/facebookoauth.py

View file
                 urllib.urlencode(dict(access_token=access_token))))
             user = User(key_name=str(profile["id"]), id=str(profile["id"]),
                         name=profile["name"], access_token=access_token,
-                        profile_url=profile["profile_url"])
+                        profile_url=profile["link"])
             user.put()
             set_cookie(self.response, "fb_user", str(profile["id"]),
                        expires=time.time() + 30 * 86400)

File examples/tornado/example.py

View file
             self.db.execute(
                 "REPLACE INTO users (id, name, profile_url, access_token) "
                 "VALUES (%s,%s,%s,%s)", profile["id"], profile["name"],
-                profile["profile_url"], cookie["access_token"])
+                profile["link"], cookie["access_token"])
             user = self.db.get(
                 "SELECT * FROM users WHERE id = %s", profile["id"])
         elif user.access_token != cookie["access_token"]: