# Making calls through a facebook portal setup

**URL:** <https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461>\
**Category:** Authentication & Security\
**Created:** [October 14, 2014, 4:31pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461 "2014-10-14T16:31:11Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![dfjablan](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfjablan/32/1201_2.png) [@dfjablan](https://community.dreamfactory.com/u/dfjablan)\
**Post date:** [October 29, 2014, 2:31pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/21 "2014-10-29T14:31:42Z")

</div>

Did you create a provider on your DSP named “facebook”? It should redirect properly then.

---

<div class="post-metadata">

**Author:** ![dfjablan](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfjablan/32/1201_2.png) [@dfjablan](https://community.dreamfactory.com/u/dfjablan)\
**Post date:** [October 29, 2014, 2:36pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/22 "2014-10-29T14:36:56Z")

</div>

In order for the portal service to function as a login provider, you must allow remote logins. This is a configuration setting that can/should be overridden with a local config file. Local config files are stored in `storage/.private/config/local.config.php`. Any settings in this file override settings from `config/common.config.php`.

Add the following to your local config:

```php
return array(
    'dsp.allow_remote_logins' => true,
    'dsp.allow_admin_remote_logins' => true,
);

```

This will allow remote logins via the portal service.

---

<div class="post-metadata">

**Author:** ![selfeky](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/selfeky/32/149_2.png) [@selfeky](https://community.dreamfactory.com/u/selfeky)\
**Post date:** [October 31, 2014, 4:49pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/23 "2014-10-31T16:49:04Z")

</div>

@dfjablan  
So you cant have more than 1 facebook provider?

Another thing, after the user has been authenticated and added to provider users  
how do call DSP services? or how can you get the Session Token for this user?

Thanks

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [December 17, 2014, 6:50pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/24 "2014-12-17T18:50:34Z")

</div>

We’re rafactoring auth service in 2.0 to be easy to use. There will be support for DSP user management, OAuth done easy, and LDAP / active directory.

---

<div class="post-metadata">

**Author:** ![BeerBeer](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BeerBeer](https://community.dreamfactory.com/u/BeerBeer)\
**Post date:** [March 22, 2015, 5:31pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/25 "2015-03-22T17:31:34Z")

</div>

When is the planned release for 2.0?

I can’t get this whole OAuth-thing to work w/ 1.9. The tutorials are more than confusing. To clarify: I’d like to authenticate via FB and connect this to a user in Dreamfactory.

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [March 22, 2015, 9:12pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/26 "2015-03-22T21:12:37Z")

</div>

2.0 will be available in Q2. We’re shooting for an early beta release in April and a GA production release in June.

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [March 23, 2015, 7:26pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/27 "2015-03-23T19:26:05Z")

</div>

Hi @BeerBeer, Facebook authentication should be working just fine in the current version of DSP. Could you provide some more information on which step(s) in the tutorials you’re stuck on, and how I can reproduce the problem? Also, could you please confirm you’re using the following resources:

[https://blog.dreamfactory.com/blog/bid/341114/OAuth-Tutorial-Part-One](https://blog.dreamfactory.com/blog/bid/341114/OAuth-Tutorial-Part-One)  
[https://blog.dreamfactory.com/blog/bid/341114/OAuth-Tutorial-Part-Two](https://blog.dreamfactory.com/blog/bid/341114/OAuth-Tutorial-Part-Two)

> **[dreamfactorysoftware/portal-sandbox](https://github.com/dreamfactorysoftware/portal-sandbox)**
>
> DreamFactory Portal Sandbox Application. Contribute to dreamfactorysoftware/portal-sandbox development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![BeerBeer](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BeerBeer](https://community.dreamfactory.com/u/BeerBeer)\
**Post date:** [March 23, 2015, 8:10pm UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/28 "2015-03-23T20:10:54Z")

</div>

Hi,

my issue here is that although the portal & portal-sandbox-app is working fine (I can click & use “authentificate” to receive the /me-data), I’m totally unsure how to implement this client-side. My client’s based on AngularJS + cordova/phoneGap (i.e. running locally) and currently, I’m simply using HTTP-calls to register and login w/ DSP.

I’m also able to use the FB-API via the [phonegap-facebook-plugin](https://github.com/Wizcorp/phonegap-facebook-plugin) and receive a authResponse, complete w/ accessToken and userID. But how do I create a connection to DreamFactory? I’ll need a valid DSP-session.

Sorry if this is a stupid question, but I really don’t get this.

---

<div class="post-metadata">

**Author:** ![Dhammika](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Dhammika](https://community.dreamfactory.com/u/Dhammika)\
**Post date:** [September 7, 2015, 3:44am UTC](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461/29 "2015-09-07T03:44:59Z")

</div>

@BeerBeer did you resolve your issue ?

I have run into the same and was wondering if you had to go with 2.0 (Beta) or If got this working with 1.9.

[Previous page](https://community.dreamfactory.com/t/making-calls-through-a-facebook-portal-setup/461.md?page=1)
