CSC/ECE 517 Fall 2013/oss S805 ahs: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 30: Line 30:


You can use any active Facebook account to login to Sahana. After logging in, a like button will be available at the end of every Sahana web page. Once a user likes a page, the like link changes to confirm link. Once the user presses the confirm link, a wizard opens which allows the user to post a message to his facebook account.  
You can use any active Facebook account to login to Sahana. After logging in, a like button will be available at the end of every Sahana web page. Once a user likes a page, the like link changes to confirm link. Once the user presses the confirm link, a wizard opens which allows the user to post a message to his facebook account.  


Step 1:
Step 1:


[[File:Third.jpg|frame|center]]
[[File:Third.jpg|frame|center]]


Step 2:
Step 2:


[[File:Fourth.jpg|frame|center]]
[[File:Fourth.jpg|frame|center]]


Step 3:
Step 3:


[[File:Five.jpg|frame|center]]
[[File:Five.jpg|frame|center]]


Step 4:
Step 4:


[[File:Six.jpg|frame|center]]
[[File:Six.jpg|frame|center]]


Step 5:
Step 5:


[[File:Eight.jpg|frame|center]]
[[File:Eight.jpg|frame|center]]


Step 6:
Step 6:


[[File:Nine.jpg|frame|center]]
[[File:Nine.jpg|frame|center]]


Step 7:
Step 7:


[[File:Ten.jpg|frame|center]]
[[File:Ten.jpg|frame|center]]


Step 8:
Step 8:


[[File:11.jpg|frame|center]]
[[File:11.jpg|frame|center]]


Step 9:
Step 9:


[[File:12.jpg|frame|center]]
[[File:12.jpg|frame|center]]


Step 10:
Step 10:


[[File:13.jpg|frame|center]]
[[File:13.jpg|frame|center]]


Step 11:
Step 11:


[[File:14.jpg|frame|center]]
[[File:14.jpg|frame|center]]

Revision as of 17:58, 30 October 2013

Facebook Integration with Sahana Eden

Introduction

Our project integrates Facebook with Sahana Eden. Sahana Eden is an Open Source Humanitarian Platform which can be used to provide solutions for Disaster Management, Development, and Environmental Management sectors.

Motivation

Design

The first step to be taken for enabling Facebook Login feature in Sahana is to create a Facebook app and get the App ID/Api Key. Now open the file Eden\web2py\applications\eden\models\000_config.py and uncomment the following two settings. Also enter the FB ID and Key in respective settings.

settings.auth.facebook_id = <fb secret id> settings.auth.facebook_secret = <fb secret key>

Also add the following property to activate the Facebook like button settings.ui.social_buttons = True

After making the above modifications, we need to restart the server for the changes to take effect. Once the server restarts you'll see a button "Login with Facebook" visible on the home page

Setup Issues

You can use any active Facebook account to login to Sahana. After logging in, a like button will be available at the end of every Sahana web page. Once a user likes a page, the like link changes to confirm link. Once the user presses the confirm link, a wizard opens which allows the user to post a message to his facebook account.


Step 1:


Step 2:


Step 3:


Step 4:


Step 5:


Step 6:


Step 7:


Step 8:


Step 9:


Step 10:


Step 11: