Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion exampleapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def index():
me=me, POST_TO_WALL=POST_TO_WALL, SEND_TO=SEND_TO, url=url,
channel_url=channel_url, name=FB_APP_NAME)
else:
return render_template('login.html', app_id=FB_APP_ID, token=access_token, url=request.url, channel_url=channel_url, name=FB_APP_NAME)
permission_list = ",".join(app.config['FBAPI_SCOPE'])
return render_template('login.html', app_id=FB_APP_ID, token=access_token, url=request.url, channel_url=channel_url, name=FB_APP_NAME, permission_list=permission_list)

@app.route('/channel.html', methods=['GET', 'POST'])
def get_channel():
Expand Down
2 changes: 1 addition & 1 deletion templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="fb-root"></div>
<h1>Welcome</h1>
<div id="login-flow">
<fb:login-button perms="email,offline_access" show-faces="true"></fb:login-button>
<fb:login-button perms="{{ permission_list }}" show-faces="true"></fb:login-button>
</div>

{% endblock %}
Expand Down