# Facebook login + inappbrowser + ionic 1

**URL:** <https://forum.ionicframework.com/t/facebook-login-inappbrowser-ionic-1/75191>\
**Category:** ionic-v1\
**Created:** [January 4, 2017, 6:20pm UTC](https://forum.ionicframework.com/t/facebook-login-inappbrowser-ionic-1/75191 "2017-01-04T18:20:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kros15](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/kros15/32/105843_2.png) [@Kros15](https://forum.ionicframework.com/u/Kros15)\
**Post date:** [January 4, 2017, 6:20pm UTC](https://forum.ionicframework.com/t/facebook-login-inappbrowser-ionic-1/75191/1 "2017-01-04T18:20:25Z")

</div>

Hey everyone, i am starting with ionic and have some problems cuz i am still learning… i just folowed and completed this tutorial: [Ionic Docs - Ionic Documentation](https://docs.ionic.io/services/auth/facebook-auth.html) with no problems, but my app is not doing anything after login, you just see the facebook window, log in and get redirected back to the same home view with no info, i need to manage the users data like profile picture, name… and my code is:

> .controller(‘auth’, function($scope, $ionicAuth, $ionicUser,$state) {

> $scope.FacebookLogin = function(){

> ```
> $ionicAuth.login('facebook').then(
> 
> ```

> ```
> //do something, but what!?
> // var full_name = $ionicUser.social.facebook.data.full_name;
> // var profile_picture = $ionicUser.social.facebook.data.profile_picture;
> // var facebook_raw_data = $ionicUser.social.facebook.data.raw_data;
> 
> ```

> ```
> );
> // $state.go('dashboard');
> 
> ```

> }

Could you gimme and example what to do now? whats the next step? i know i have to validate if user is logged and then show the dashboard view but i am stucked already now. i am better in front-end XD.  
**Thanks in advance**

---

<div class="post-metadata">

**Author:** ![baviskarmitesh](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@baviskarmitesh](https://forum.ionicframework.com/u/baviskarmitesh)\
**Post date:** [January 5, 2017, 9:52am UTC](https://forum.ionicframework.com/t/facebook-login-inappbrowser-ionic-1/75191/2 "2017-01-05T09:52:38Z")

</div>

Follow the steps mentioned in bellow link

[https://blog.brunoscopelliti.com/facebook-authentication-in-your-angularjs-web-app/](https://blog.brunoscopelliti.com/facebook-authentication-in-your-angularjs-web-app/)

---

<div class="post-metadata">

**Author:** ![oscar7aylor](https://avatars.discourse-cdn.com/v4/letter/o/e480ec/32.png) [@oscar7aylor](https://forum.ionicframework.com/u/oscar7aylor)\
**Post date:** [January 29, 2019, 8:31pm UTC](https://forum.ionicframework.com/t/facebook-login-inappbrowser-ionic-1/75191/3 "2019-01-29T20:31:40Z")

</div>

Once the user authorizes facebook through the app, it won’t ask it again. You have to go to your apps on your normal facebook account (not developer) and delete the app as any other. Then it would show again the permissions pop-up.
