katoさん
お世話になっております。返信ありがとうございます。
返信遅くなりましたが、GWなので試してみました。
やはりsessionなのですね。
以下のようにしてみました。
~~例のFacebookのサンプルのmodels/db.py一部~~~~~~~
# override function that fetches user info
def get_user(self):
"Returns the user using the Graph API"
if not self.accessToken():
return None
if not self.graph:
self.graph = GraphAPI((self.accessToken()))
# このようにグローバル変数へ代入
session.graph = self.graph
try:
~~~
~~views/graph/index.html~~~~
{{extend 'layout.html'}}
{{=graph}}
~~~~
~~controllers/graph.py~~
def index():
graph = session.graph
return dict(graph=graph)
~~~~~~~~
しかしながら表示はNoneでした。
Facebookとの連携が難しいですね。
2012年4月25日水曜日 0時46分52秒 UTC+9 shinriyo: