Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function checkIsExistFacebook(Admin_Model_DbRow_BrandsAccounts $item)
- {
- echo "Je rentre dans facebook", "\n";
- try
- {
- $result = My_Facebook::getFacebook()->api("/$item->slug?fields=id,name,verified_status");
- }
- catch (Exception $result)
- {
- echo 'Exception reçue : ', $result->getMessage(), "\n";
- }
- if ($result)
- {
- echo 'OK', "\n";
- $item->existing = 'yes';
- $item->save();
- }
- else
- {
- $item->existing = 'no';
- $item->save();
- }
- $item->save();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement