Skip to content

Commit

Permalink
Updated Facebook API
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyCC committed Feb 1, 2014
1 parent 7c53fea commit fa52018
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
3 changes: 1 addition & 2 deletions client/app/scripts/services/ParseServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ angular.module('ParseServices', [])
}])

.factory('ParseSDK', function() {

// pro-tip: swap these keys out for PROD keys automatically on deploy using grunt-replace
Parse.initialize("oInJV2JlcXR96EN0SQjee0n5FlRUAd0joyFXReve", "OOZa6rsbkIiRWyiNlmHVMgMIHAyTqPdHRg7N1PxO");

Expand All @@ -23,7 +22,7 @@ angular.module('ParseServices', [])
Parse.FacebookUtils.init({

// pro-tip: swap App ID out for PROD App ID automatically on deploy using grunt-replace
appId: 481650395275919, // Facebook App ID
appId: 643298702409846, // Facebook App ID
channelUrl: 'http://brandid.github.io/parse-angular-demo/channel.html', // Channel File
cookie: true, // enable cookies to allow Parse to access the session
xfbml: true, // parse XFBML
Expand Down
29 changes: 2 additions & 27 deletions client/app/views/detail/facebook.example.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,17 @@ <h1 class="punchy muted light-text-shadow"><i class="icon icon-facebook small-ri
<h4 class="no-height-margin line height-btn"><i class="icon icon-facebook icon-large lightest-text"></i></h4>
</div>
<div class="span75-25 center-align ">
<span class="machine no-height-margin line normalcase height-btn lightest-text">1. Connect</span>
<span class="machine no-height-margin line normalcase height-btn lightest-text">Sign in</span>
</div>
</div>
</a>
</div>

<div class="row-fluid max-width-400 withShadow bottom-margin">
<a ng-click="exampleCall()" class="btn-fb btn-large">
<div class="row-fluid">
<div class="span25-75 center-align">
<h4 class="no-height-margin line height-btn"><i class="icon icon-facebook icon-large lightest-text"></i></h4>
</div>
<div class="span75-25 center-align ">
<span class="machine no-height-margin line normalcase height-btn lightest-text">2. Send Request</span>
</div>
</div>
</a>
</div>


<pre>
$scope.facebookCtrl.fbAuthData = {{ facebookCtrl.fbAuthData }}

$scope.facebookCtrl.response = {{ facebookCtrl.response }}

</pre>


<div class="row-fluid white-back withShadow withRadius top-margin top-padding bottom-padding width-padding">

<div class="row-fluid left-align muted">
So what did we do here? We made it an actual joy to work with the Facebook API.
<br><br>
Check out the details <a href="#/features/facebookSDK" class="">Features > Angular Wrapper for Facebook SDK</a>
</div>
</div>

</div>
<div class="row-fluid" ng-include src="'app/views/footer.html'"></div>
</div>

0 comments on commit fa52018

Please sign in to comment.