Laravel: Messaging System - php

I am trying to implement a messaging/mail system for my project,
The project is a forum and I want to implement that a user can message another user, the user has to go into their inbox and see the messages, the idea is that it is very similar to what eBay has or email services.
So far my idea is to create a table which holds the subject, mail content, the UserID of the user who sent the message and lastly the UserID of who is going to receive the message.
I am not sure if im missing anything and if someone can help me with a step by step guide on how to achieve this, any input will be highly appreciated it.
Thank you.
:)

Related

Laravel 5.7 Notification

I am trying to build a notification system. But not a mail or sms notification. When I update a table in DB, user get web-browser notification(kind a facebook style) But I am little bit a stuck. I know Laravel has a system for this and when I search the internet people keep saying need pusher and tutorials all about e-mail notification. Not a database update and send web-message? What is the correct way to this?
I think what you are looking for is Broadcasting
You can find more information about it here:
https://laravel.com/docs/5.7/broadcasting

Cannot find the Telegram Account type

I'm maintaining a group on Telegram. There is one user who keeps joining and leaving the group, I'm not even sure this is an account or what it is. I can't even send any personal messages. I'm using below-mentioned code to see the new chat participant data.
if ($message['new_chat_participant']) {
}
Here is the link of a screenshot when I try to Personal Message this person:
Like the client clearly says it's a deleted account... you can't send messages to it, because it basically doesn't exist (anymore). also they shouldn't join groups...
your question is here clearly out of place and we can't help you here, you should ask the Telegram Support (Telegram Settings > Ask a Question).

how to send push notifications to multiple users via php

I am following this tutorial from androidhive. http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Everything is working But The tutorial only shows how to send a push to ONE device at a time. I would like to send a push notification to all devices at once using the same method. I believe the way to do this is by editing the send_message.php But i'm still trying to understand how his method works.
I have tried commenting and emailing the person who wrote the article but have not gotten a response. I just need someone to point me in the right direction.
Any hints, guildance, answers, comments are much appreciated.
Now that you have successfully implemented what that tutorial teaches, the basis idea now for sending to multiple users will be something like this:
To send push notification to multiple users, you need to create an application server in PHP.Your application server will receive the registration id from the android application and will store it in a database (may be mysql).
Now when you want to send the message to the application then you write a message and fetch all the registration ids from the database which was stored earlier.
You can follow this useful tutorial to achieve exactly what you want.
The tutorial which you have mentioned was made using GCMRegistrar which is deprecated now.Instead you need to use GoogleCloudMessaging API.The link which i provided uses the new way.Hope this helps you to implement what you want.

Invite friends from Facebook who already exists in the user system

In the past days I've been reading the Facebook documentation. What I can't get to work is how to make a working script so users can invite their Facebook friends, as friends in my system, who are already registered on my site, via my social connection script made with the Facebook SDK. I would love to give you guys some code to work with, but I need to be honest: can't figure out in any way to make this work. My next step was to search on Google and GitHub. I did find something similar, but not that good. So currently my last hope now is some IT-guru on Stackoverflow. Ideas, tips and links would be very helpful.
Edit:
My intention is to use e-mail to make it work.
If you don't understand the question or have some questions - feel free to ask.
Regards.
You should do this based on Facebook user id, not email.
Save the FB user id to your database, and when a new user registers on your site, pull their friend’s ids from Facebook and compare them to the ids in your database.
You can do this via email address.
Users in your website using their email address and Users of facebook also uses their email address.
You can check if someone invite his friends from facebook. than script check email address available or not in your database. you can show available users via his/her email.
You may get the code from here,
http://developers.facebook.com/docs/reference/dialogs/requests/,where you can use the 'to' field for selecting your friends to invite.

How the communities like facebook,orkut can able to track down our mail contact list

How few social communities can able to track down the contact lists from our mail id alone.Is there any MOU or its open for all.
Can anyone explain this.
Thanks
Lokesh.
This question deals with Facebook and GMX specifically: Importing Facebook friends with API
They shouldn't be able to track down contact information with the E-Mail address alone, though. All the services I know ask you for your user name and password to log in to the actual service.
If you're seeing contact suggestions without giving the network your E-Mail credentials, what probably happens is that they cross-reference your address against other people's contact lists.
If i am not wrong they also require password for authenticate and after they accessing their CSV contact file or some other format that has been provided by the Application

Categories