<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Facebook OAuth</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=63416635" />
  <subtitle>Facebook OAuth</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=63416635</id>
  <updated>2026-04-04T10:41:32Z</updated>
  <dc:date>2026-04-04T10:41:32Z</dc:date>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111177634" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111177634</id>
    <updated>2018-10-09T14:42:05Z</updated>
    <published>2018-10-09T14:42:05Z</published>
    <summary type="html">&lt;p&gt;Ok, JS, so you are not using the mobile SDK.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Are you inside of Liferay, an angular application served inside of a
  portlet? if yes, call the local services with the JS SDK (the frontend
  forum will be more helpful than us).&lt;/p&gt;
&lt;p&gt;If you are outside, you will have to send the auth token
  (Liferay.authToken) but, again, the general/frontend forum will know
  better, this forum is specific to the mobile sdk (native Java+Swift
  framework to access the JSON-WS services where you have an automatic
  Java/Swift way of sending the cookie).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2018-10-09T14:42:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111176054" />
    <author>
      <name>krishna patel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111176054</id>
    <updated>2018-10-09T10:34:27Z</updated>
    <published>2018-10-09T10:34:27Z</published>
    <summary type="html">&lt;p&gt;Hello Javier Gamarra,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;still, I am not getting how can I implement by sessionAuthentication
  or OAuth.&lt;/p&gt;
&lt;p&gt;Let me clear scenario, I am working in one  angular web application.
  we are just using Liferay REST JSON services of Liferay. for regular
  login I am using BasicAuth(id:password)  in each API request to
  authorize a user. now, we have customer facebook login module. so,
  Liferay site handles facebook log in by setting facbookId, token etc
  in browser session. but, from Rest API how can I identify which user
  is login. there should be some basicAuth Token or p_auth token in each
  API request. basic auth is not possible for facebook scenario As
  Liferay store encrypted autogenerated password in the database. and I
  am not sure how to get p_auth token from server side. It would be fine
  if you can help me some example code of any solutions.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</summary>
    <dc:creator>krishna patel</dc:creator>
    <dc:date>2018-10-09T10:34:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111167069" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111167069</id>
    <updated>2018-10-08T12:32:25Z</updated>
    <published>2018-10-08T12:32:25Z</published>
    <summary type="html">&lt;p&gt;You should use SessionAuthentication (cookies) or OAuth :)&lt;/p&gt;</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2018-10-08T12:32:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111166307" />
    <author>
      <name>krishna patel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111166307</id>
    <updated>2018-10-08T12:03:07Z</updated>
    <published>2018-10-08T12:03:07Z</published>
    <summary type="html">&lt;p&gt;Hi Michele Russo,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have same problem, How can I Authenticate facebook user via json
  API. like, when user login via facebook, we don`t have password. so, I
  can not not use basic Auth. right?  so, have you found any solution
  for that?&lt;/p&gt;</summary>
    <dc:creator>krishna patel</dc:creator>
    <dc:date>2018-10-08T12:03:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75391896" />
    <author>
      <name>Marco Fargetta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75391896</id>
    <updated>2016-06-16T13:57:15Z</updated>
    <published>2016-06-16T13:57:15Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;did you find the solution? I have a very similar problem and I would know if you get a way to allow authentication from mobile app using a different authentication source.&lt;br /&gt;&lt;br /&gt;Cheers</summary>
    <dc:creator>Marco Fargetta</dc:creator>
    <dc:date>2016-06-16T13:57:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63563547" />
    <author>
      <name>Michele Russo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63563547</id>
    <updated>2015-11-18T17:34:15Z</updated>
    <published>2015-11-18T17:34:15Z</published>
    <summary type="html">How implement custom BasicAuthHeaderAutoLogin in order to pass my custom Authentication?&lt;br /&gt;&lt;br /&gt;i want signup and login with facebook in my app like i do in my liferay portal&lt;br /&gt;&lt;br /&gt;Can you help me?</summary>
    <dc:creator>Michele Russo</dc:creator>
    <dc:date>2015-11-18T17:34:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63448424" />
    <author>
      <name>Bruno Farache</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63448424</id>
    <updated>2015-11-16T18:54:39Z</updated>
    <published>2015-11-16T18:54:39Z</published>
    <summary type="html">In order to use the Mobile SDK, the user must exist in the portal. You could pass your own Authentication implementation if you want to do something different, it allows to pass headers to the portal, but this header must be something the portal can use to authenticate the user.</summary>
    <dc:creator>Bruno Farache</dc:creator>
    <dc:date>2015-11-16T18:54:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63437490" />
    <author>
      <name>Michele Russo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63437490</id>
    <updated>2015-11-16T15:48:04Z</updated>
    <published>2015-11-16T15:48:04Z</published>
    <summary type="html">Sorry,&lt;br /&gt; may be you don&amp;#39;t understand my real question or i make the question in a wrong way.&lt;br /&gt;We are developing an app with Liferay mobile SDK.&lt;br /&gt;&lt;br /&gt;We use the Liferay SDK mobile (Android, iOS) in this way :&lt;br /&gt;&lt;br /&gt;The USER creates his &amp;#34;user&amp;#34; and &amp;#34;password&amp;#34; on our Liferay portal, that we use in Session Impl in order to do our Basic Auth.&lt;br /&gt;&lt;br /&gt; E.G.&lt;br /&gt;Session session = new SessionImpl(url, new BasicAuthentication(user, pass));&lt;br /&gt;AddressService addservice = new AddressService(session);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the user would Sing-up directly with Facabook in our APP, &lt;br /&gt;&lt;br /&gt;how can we create our Session without the &amp;#34;user&amp;#34; and &amp;#34;password&amp;#34; ? &lt;br /&gt;&lt;br /&gt;Should we use the Facebook Token that we receive from the FB session, or something else ?&lt;br /&gt;&lt;br /&gt;Thanks a lot.</summary>
    <dc:creator>Michele Russo</dc:creator>
    <dc:date>2015-11-16T15:48:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63432501" />
    <author>
      <name>Bruno Farache</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63432501</id>
    <updated>2015-11-16T14:48:44Z</updated>
    <published>2015-11-16T14:48:44Z</published>
    <summary type="html">Hi Michele,&lt;br /&gt;&lt;br /&gt;What&amp;#39;s the relation between Facebook authentication and your portal authentication?&lt;br /&gt;&lt;br /&gt;Are users using their Facebook credentials to login to the portal? Like described &lt;a href="https://www.liferay.com/web/tauseef/blog/-/blogs/liferay-facebook-sso"&gt;at this blog post&lt;/a&gt;?</summary>
    <dc:creator>Bruno Farache</dc:creator>
    <dc:date>2015-11-16T14:48:44Z</dc:date>
  </entry>
  <entry>
    <title>Facebook OAuth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63416634" />
    <author>
      <name>Michele Russo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=63416634</id>
    <updated>2015-11-16T09:39:54Z</updated>
    <published>2015-11-16T09:39:54Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;We have a problem with Facebook OAuth and Liferay on mobile app.&lt;br /&gt;&lt;br /&gt;The question is:&lt;br /&gt;&lt;br /&gt;how to use Liferay remote services after a login made through Facebook on a mibile app (iOS and Android)?&lt;br /&gt;&lt;br /&gt;We have to use FBSession like LRSession in order to call remote services&lt;br /&gt;&lt;br /&gt;How we can achieve this?</summary>
    <dc:creator>Michele Russo</dc:creator>
    <dc:date>2015-11-16T09:39:54Z</dc:date>
  </entry>
</feed>
