Category : facebook

I am a Laravel developer, currently working on a CRM. I have successfully implemented Facebook lead integration with webhook. The long access token generation and lead accessing are working correctly. But some time for some users there is an error while accessing the lead data "Error validating access token: The session has been invalidated because ..

Read more

Let’s say my web app is hosted at example.com , I can share things to Facebook. Assume that I shared an item from website to FB. In order to view the shared item I’m using item-share route. And the shared link looks like this https://l.facebook.com/l.php?u=https%3A%2F%2Fexample.com%2Fitems-share%2F33103%3F32194%26fbclid%3DIwAR2cuJOIoexEaWEB_WCTdwp2PFboKK4LtFjs0KitOo1aSOuTZgldZOKluy8&h=AT1xZEuNGfIvCuwtdXg5jlWIwYpfPLWRFev61_1pUg8MJIeC418YTre4MWARPlV7nkEgUFuLey5M9LEX_Jw1yXbQWrJ73p12c-YnQ3sc0qHbEszLzZTcH5L2OI_-&__tn__=H-R&c[0]=AT1oR6q1GGlnfZywsPSMds8HR7HpegOXjoE7YxdV8sKtw1SFYiCrDLWfqd_rLFAIlgDyzroANS2M34bWvtEl0p75iCMhmgHi6Z1QGsdzi0Dj-qMpZaeRWrFK5FbgqNr1LS7ZtEnbRyWezF0uyEhl2XP29Q The problem is when I click that instead of redirect ..

Read more

I am currently using Laravel Socialite for Facebook login in my web project. How do I get the access token and expiresin, then store them inside users table in the database? LaravelSocialiteTwoUser {#366 ▼ +token: "EAAqbG7tzw3sBAEK6ePXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" +refreshToken: null +expiresIn: 5174967 +id: "429285XXXXXXXXXX" +nickname: null +name: "Facebook Display Name" +email: "[email protected]" +avatar: "https://graph.facebook.com/v3.3/429285XXXXXXXXXX/picture?type=normal" +user: array:3 [▼ ..

Read more

I’m working on a backend system which use search fonctionality to fetch public facebook information such as pages and then posts to make our users able to easily integrate facebook posts into their own pages. Our system can fetch pages and posts with the App access token and the Page Public Content Access. but the ..

Read more

I am trying to add Facebook authentication but when the response returns it shows a null email and name. I need an email to register the user to perform some activities. public function socialLoginfb() { // return Socialite::driver(‘facebook’)->redirect(); return Socialite::driver(‘facebook’)->fields([ ‘first_name’, ‘last_name’, ’email’, ‘gender’, ‘birthday’ ])->scopes([ ’email’, ‘user_birthday’ ])->redirect(); } public function handleProviderFacebookCallback(Request $request) { ..

Read more

I have follow this https://projectsplaza.com/create-like-dislike-system-with-laravel-jquery-ajax/ Tutorial to implement Like/Dislike but when i click on like button counter is not incrementing for that i have to refresh the page and then counter is incrementing. Can anyone help me how to increment counter without refreshing the page. Here is the code i have used. // Save Like ..

Read more

I have done "composer require laravel/socialite" about Facebook login then I would like to send a notify message by Facebook messenger to the user there is a way to get PSID from Facebook user_id $_reply_message = ‘{ "messaging_type": "RESPONSE", "recipient": { "id": "<PSID>" }, "message": { "text": "hello, world!" } }’; function send_reply($access_token=”,$reply=”) { $url="https://graph.facebook.com/v11.0/me/messages?access_token=$access_token"; ..

Read more

I’m trying to share my page https://globalmetrade.com/ in facebook. I’m using this code: <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A//GlobalMetrade.com/HubSpotEspanol/" data-mce-disabled-user-modify="true" target="_blank">Like Us on<br>Facebook</a> But as you can see in the link-. https://www.facebook.com/sharer/sharer.php?u=https%3A//GlobalMetrade.com/HubSpotEspanol/ , the logo image is too big and it’s very ugly. This is the logo image in the my page. <img src="{{asset(‘images/GlobalMetrade.png’)}}" class="img-fluid" alt="Image" class="img-fluid"> Is there ..

Read more

The website https://jeeveslive.com/ has a feature to share posts on Facebook messenger. The website has 4 types of posts from which gig posts work fine, but the rest of the posts shows blank white page. The sharing works fine. The posts are shared on facebook messenger, but when other user opens his messenger and clicks ..

Read more

I’m trying to sync a custom audience with the php fb sdk. My script looks like this: foreach ($users->pluck(’email’) as $email) { $hashed[] = [hash(‘sha256’, $email)]; } try { (new CustomAudience(‘custom-audience-id’)) ->createUsersReplace([], [ ‘payload’ => [ ‘schema’ => [ ‘EMAIL’, ], ‘data’ => $hashed, ], ‘session’ => [ ‘session_id’ => rand(1, 10000000), ‘batch_seq’ => 1, ..

Read more

Hi am trying to write a Facebook bot, but the challenge is that the code in the controller is executed even if the Conversation has not ended. How can I make this synchronous? Here is my controller class GetStartedController extends Controller { public function index($bot) { $user = $bot->getUser(); $ps_id = $user->getId(); $bot_user = FacebookUser::where(‘ps_id’,$ps_id)->first(); ..

Read more

I am Trying to set fb messenger bot in Laravel 8 But it show show the error of The URL couldn’t be validated. in the Facebook Developer page. What I am trying is <?php namespace AppHttpControllers; use IlluminateHttpRequest; use pimaxFbBotApp; use pixmaxMessagesMessage; class MessagerController extends Controller { public function index(Request $request) { if ($request->hub_verify_token === ..

Read more