Allow access to salesforce from any domain using php - php

I am a newbie to Salesforce and need to allow access to it using my website.
I have gone through the documentation provided by salesforce but it did not help.
https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_web_server_flow.htm&language=en_US
Actually I have developed a php website using codeignator and the requirement is, it needs to redirect users to salesforce.com for authorization, after authorization the application returns back to the website and from then I can add users as leads to salesforce directly from my website.
But when I try to connect to sales force as per the documentation given in the above link, it is throwing errors as shown below
error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
I have signed up for a development account with salesforce.com but the users using this app will have enterprise edition and each user will have its own salesforce product, so how to implement this using one client_id or say my client_id and my redirect url which is defined in my salesforce account, is very confusing, so I am writing it here.
Please help me with this how to allow access to individual salesforce accounts using php, any help is greatly appreciated, also please let me know if I am not clear with my requirement.
Thanks in advance.

Related

Paypal REST API: How can I get authenticated users email/name without using the Identity API?

So it seems like https://developer.paypal.com/docs/api/identity/v1/ only works if you're using Connect with Paypal API. This isn't an option at the moment. I have a Paypal widget within my dashboard and users can add multiple accounts. I need an email or name to help my users distinguish this account from their others. I tried using /userinfo but I only received the user_id property.
Is there something I can do differently to get email/name from this endpoint or is there somewhere else I can get this data? This workflow is best for users but if needed I can have them manually enter the info on my application
What ended up working for me was making sure all permissions per enabled and I added my return URL. I was doing this to setup connect with paypal button but then tried a postman request and realized I could now get all user info needed

Is it possible to send an email to a list of users using Marketo API and PHP

I've got a Drupal website and I'd like to send an email via Marketo whenever a new post is created. I've got the Drupal side of things covered (I know how to create the custom module that will be triggered whenever a new content us created).
What I don't know is whether:
1) Marketo API allows for this?
2) How? As when I was trying to follow this tutorial, I got stuck on the $clientId and $clientSecret as these values are now available under Integration/LauchPoint nor in Integration/Web Services
Thanks!
You should have an admin account or something. http://developers.marketo.com/documentation/rest/custom-service/
Here is how you can obtain your client id and secret

Sign into existing Laravel back-end with Parse

I am interested in expanding a Laravel 4.2 web app into the realm of mobile apps, allowing simple things such as the ability for existing users to sign in (but not sign up) and receive push notifications (simple at first for beta testing). I am very intrigued by Parse.com for their push notification capability but do not want to have to manage two sets of users - Parse and Laravel. Further, this app will be locked down to subscribers - it cannot be a free for all when it comes to user registration.
On the feature list for Parse Core it mentions connecting users via "traditional logins" but I cannot find an example of this anywhere. By "traditional login" do they mean sending a username and password to a remote back end? Or is that their way of referring to logging in with Parse users? Is it possible to connect Parse to a remote API such as my Laravel project (something along the lines of sending POST data with username and password and returning an auth token)?
I'd appreciate any advice on this or links to tutorials/documentation/etc. I have searched quite a bit and cannot seem to find anything.
Thanks!
You can use any of the SDKs to login a user either using a username/password or using Facebook.
Android login
iOs login
REST login
I would suggest you log the user in on the client device so that their device is registered to allow push notifications.
You can also use the REST API in your server code to do other things, such as creating the User and sending push notifications.
You can use Roles to limit things, e.g. create a "Subscriber" role and set permissions based on that Role.

How to create twitter app with access token.?

i want to create twitter app for auto posts from my website (update tweets from website to twitter),
when i try to create app, the API key and API secret's are created but for Access Token it asks to add phone number,
so i try to add phone number into my profile settings but getting the following error
,
i cant complete my authentication section because of this error.
anyone know any solution for this.
Thanks in advance.
We are sorry about the inconvenience. If you are unfortunately unable to meet the mobile phone requirements from your country, please use this link to request more permissions for your application: https://support.twitter.com/forms/platform, and use the option "I have an API policy question not covered by these points". The Platform Operations team at Twitter will help you in the process.
We are aware of the current difficulties in some countries and actively working on improving the app registration and update flow. Thanks for your patience.

Logging in to other wesites using Facebook Account

I am developing an advertisement site in PHP, the user can only list there products by logging in using there account in the site. Also i need to have another option for users to login into the website using there Facebook account and hence advertise about their products. How can i implement? Do i need to create any application instance in FB for this? I am looking forward for valuable suggestions.
Create an app.
Look into authentication, and see which method (server-side vs. client-side) fits you.
Once you've implemented that, you can make graph api calls. https://graph.facebook.com/me gives you the user's basic details
Good luck.

Categories