0
최근에 우리 웹 사이트에 "Facebook에 등록"버튼을 만들었으며 트위터로 동일한 것을 달성하려고합니다."트위터 등록"버튼 - 사용 방법
그러나 트위터로 작업을 수행하기위한 단계별 지침을 정확하게 찾는 데 어려움이 있습니다. 내가 페이스 북으로 무슨 짓을
했다 :
// (1) - Create new Facebook object:
$facebook = new Facebook(array(
'appId' => $this->config->item('facebook_app_id'),
'secret' => $this->config->item('facebook_app_secret')
));
// (2) - Get all fields relating to logged-in user:
$facebook_user = $facebook->getUser();
// (3) - Retrieve all fields which we need to register a user on OUR website:
if ($facebook_user){//if logged in to Facebook:
$facebook_user_profile = $facebook->api('/me');
$fb_email = $facebook_user_profile["email"];
$fb_first_name = $facebook_user_profile["first_name"];
$fb_last_name = $facebook_user_profile["last_name"];
// ...
}
질문 1 :
은 어떻게 트위터와 같은 일을 달성합니까?
질문 2 :
나는 응용 프로그램을 생성 (https://dev.twitter.com/apps/new) 지금은 4 개 코드 (소비자 키, 소비자 비밀, 액세스 토큰, 액세스 토큰 비밀이있다), 나는이 코드가 무엇인지 모르지만, 당장의 작업을 위해이 4 개의 코드가 필요합니까?
어떤 제안이나 온라인 리소스가 좋은 것 ...
우리는 당신을 위해 그것을하지 않을거야. 지금까지 무엇을 얻었습니까? –
누군가가 어디에서 시작해야하는지 명확히하고 싶다면 twitter로이 로그인이 어떻게 작동하는지 아직 모른다. –
또한 twitter api로 사용자 이메일 주소를 검색 할 수 있습니까? –