Skip to content
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ Enhances navigation throughout Facebook simply through command prompts from the
Currently under development.

====================================

Install the extension from http://bit.ly/WarSha

Once installed, go to the address bar and type "fb help" to see the operable commands :)
14 changes: 10 additions & 4 deletions auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@
* the getUserData function.
*
*/
/*
This function basically checks if the user is new to the app or not
If he/she isn't, then initiates data retreival
However, it doesn't work when user has updated his/her info i.e. added friends because localStorage
has stored data (which is why it's undefined) but doesn't have the new data
function checkUserData() {
if (localStorage['userData'] == undefined) {
*/
getUserData();
}
}
//}
//}



Expand All @@ -38,7 +44,7 @@ function getUserData() {
* variable. Check the Facebook Graph Explorer to figure out what privary
* requests you need to make.
*/
var scope = "read_stream,offline_access";
var scope = "read_stream,offline_access, publish_stream";
var validate_url = "https://graph.facebook.com/oauth/authorize?type=user_agent&client_id=478063252251631&redirect_uri=https://obscure-reaches-7009.herokuapp.com/&scope=" + scope;

var accessToken = "";
Expand Down Expand Up @@ -90,4 +96,4 @@ function getUserData() {
}


checkUserData();
checkUserData();
5 changes: 3 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* background.js
* author: Liam Horne
* author: Liam Horne, Nima Vaziri
* project: fbplus
*
*/
Expand Down Expand Up @@ -113,6 +113,7 @@ it will redirect to your own page. \
makeCommand("msg", function() {redirect("https://www.facebook.com/messages/", "https://www.facebook.com/messages/"+data)});
makeCommand("groups", function() {redirect("https://www.facebook.com/bookmarks/groups", undefined)});
makeCommand("apps", function() {redirect("https://www.facebook.com/bookmarks/apps", undefined)});
makeCommand("timeline", function() {redirect("https://www.facebook.com/me/friends", "https://www.facebook.com/"+data)});
makeCommand("friends", function() {redirect("https://www.facebook.com/me/friends", "https://www.facebook.com/"+data+"/friends")});
makeCommand("gender", function() {alert(findField('gender',data))});
makeCommand("id", function() {alert(findField('id',data))});
Expand All @@ -139,4 +140,4 @@ it will redirect to your own page. \

checkCommands();

});
});