How to create twitter app with access token.? - php

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.

Related

Proper Method for Google Calendar with PHP

I am working on a website for my organization which will allow users of the website to create/modify/etc room reservations for a number of spaces in our building.
Each room has a Google Calendar which links to several monitors around the building to display what rooms are [un]available. So, my goal was to utilize these calendars by having the website I am creating edit these google calendars. The problem I am having however is that from all the documentation I have been able to find, it looks like you have to prompt each user for Google Log-In. This is what I am trying to avoid. I want individuals to be able to log-in to my website, and then on the backend my website provides the authentication to Google so that they can add/edit/remove events from the aforementioned GCals based on permissions on set on their account.
Can anyone help direct me to the proper documentation? I've found a couple of things through some intensive Google-ing of my own, but I've become extremely confused about what method I should be using.
Any assistance in getting things rolling is appreciated!
If I understand it correctly, the concept that you want is to create a website that writes into your own calendar and not on the users calendar. Exactly what this 3 part tutorial of Sample Web Page for Booking gives:
Part 1: Setting up Google Calendar
Part 2: OAuth2 and Configuring Your ‘Application’ With Google
Part 3: A Sample Web Page For Bookings
This tutorial worked for many like what has been done in this SO post - How do I connect to the Google Calendar API without the oAuth authentication?.

Allow access to salesforce from any domain using 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.

How to add an event to other person's Google Calendar with PHP API client?

I am working on a web application with a build-in agenda. I want to add the items that have been added in this build-in agenda, to the user's Google Agenda. But there is one thing I am wondering. How to get access to that user's Google Agenda?
I was able to get access to my own agenda by adding the XXXXXX#developer.gserviceaccount.com email to the list of addresses that have access to my agenda. But asking everyone to do this isn't really user friendly.
So does someone know the best way to request access to another person's agenda so I can add events through the Google PHP API client?
Thanks in advance!
Consider using Oauth tokens. See https://developers.google.com/accounts/docs/OAuth2
and https://developers.google.com/google-apps/calendar/auth

Scan any twitter account

One of my friend give me this challenge.
Monitor/Scan any twitter account for specified keywords inputted into the
program and grab the twitter Link Instantly and proceed to add to cart.
Must be using the Twitter API with oauth! Must find the tweet instantly or
BEFORE it is even tweeted out by the twitter account!
Please guide me
Thanks
You can get information based on tweets with the twitter GET search/tweets API.
There is no way anyone can guide you through all of this from here. But we can shoot you in the right directions and help you through the parts you get stuck at!
Here is a link to the GET search/tweets API
Click Here
Get the API and build a working environment on your local machine. From there if you run in to problems ask and you shall receive answers!
Hope this helps!

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