+ Start a Discussion
riffindusriffindus 

facebook authentication to open customer portal custom site

Hi,

I have created Facebook as authentication provider and the authentication works and take the user to standard login page.

i would like to take the customer portal to force.com site page.

i am referring this help page to add parameters in the URL but when i did and try to call the SSO URL it give me a error as Bad_id

https://help.salesforce.com/apex/HTViewHelpDoc?id=sso_provider_addl_params_site.htm&language=en_US#sso_provider_addl_params_site.xml

the error message i get is below

https://cs8.salesforce.com/_nc_external/identity/sso/ui/AuthorizationError?ErrorCode=Bad_Id
Ashish_SFDCAshish_SFDC
Hi, 


Please check for correct user/user login. 

In the case you want to review the steps to set up /review the configuration,

https://login.salesforce.com/articles/Documentation/sso-provider-facebook-htm?popup=true


Regards,
Ashish
riffindusriffindus
Hi,

The link provided is not working. Can you please give me proper link.


Ashish_SFDCAshish_SFDC
Hi, 

Try this one, 

https://help.salesforce.com/apex/HTViewHelpDoc?id=sso_provider_facebook.htm&language=en_US

Regards,
Ashish
riffindusriffindus
Hi Ashish,

Thanks for the Link. but i have past through the steps mentioned in the help document.

my requirement is quite particular now.

I am able to launch the force.com site.com page after authentication but i wanted to pass opportunity ID in the URL. The methd takes only user as return, i don't know how to append id on it.
Ashish_SFDCAshish_SFDC
Hi,


Can you give more details, and the flow of the user.

What are the actions taken by the user and how you are trying to pass the Opportunity ID.

You can add a screenshot - if that explains well by using the Image in the text tool and posting an image in tinypic.com . 


Regards,
Ashish
riffindusriffindus
Hi Ashish,

we are planning to have a facebook button on our force.com site page, when user clicks on it, it will take the user to Facebook and get user details and if it is new user, we are creating a customer portal user and then we should take the user to force.com custom page 1.

right now, i am able to take the user to login page(not page 1)

salesforce has given a handler class for authentication (registration handler which implements auth.registration) but this class will take method with return as user. i cannnot send id and i don't know to append the ID also to the URL.


below link is the SSO link which will be called when user clicks on the FB button.
https://test.salesforce.com/services/auth/sso/00DL00000028IXDMA2/demo?site=https%3A%2F%2Fdev6-trident.cs8.force.com%2Fapplications
Ashish_SFDCAshish_SFDC
Hi, 


See the description and code for the Login and Landing page for communities below, should help, 

How To Create a Custom Salesforce Communities Login and Landing Page

https://appirio.com/category/tech-blog/2013/10/create-custom-salesforce-communities-login-landing-page/


Regards,
Ashish
vaibhav srivastavavaibhav srivastava
Hi Riffindus,

How did you manage to get it resolve? I am encountering the same issue. Please help on this !

Thanks,
Vaibhav
pupilstuffpupilstuff
Hi guyz ,

I am trying to use Facebook authentication through force.com site but all the examples are given based on communities , can any one please let me know the basic steps