Getting Event Date Facebook Graph Api - php

I'm currently using the Facebook Graph API to get some results.
I got almost everything but stucked in event date.
Url-
https://graph.facebook.com/$page_id/posts?access_token=$access_token&fields=object_id,story,message,full_picture,from,link,updated_time,source,type,caption,description
I need to get the event date.
Any help will be helpfull.
Thanks

https://graph.facebook.com/$page_id/events?access_token=$access_token&fields=name,id,timezone,message,start_time,end_time,picture.type(large),description,category,type,attending_count,interested_count,declined_count
For Events I am using this here I am unable to get large image.
I have used picture,full_picture but not getting large size image

Related

Is there a way to get reach metric of facebook posts via webhook?

I'm getting the reach metrics via api call
{page-id}/fields=insights.metric(post_impressions){values}
But didn't find any way to get reach metric of facebook posts using webhook.
Do we get reach metrics using below endpoint
$facebook_page_id.'/subscribed_apps?subscribed_fields=feed
I'm following enter link description here
But didn't find any way to get reach metric of facebook posts using webhook.
There isn’t any.
The data you can get from this endpoint, is not data that would require any reaction “in real time” to begin with, so it would make rather little sense to integrate this into web hooks in the first place.
And these insight metrics get updated once a day only anyway, AFAIK.
Just make the API request, when you need the insights data.

How to get all tweets of given username ( in PHP)

I already got 3200 tweets using API v1.1 but I need all the tweets so I also used cron job as background process but it didn't increase the tweets .
Please suggest me if any way possible either scraping or using API.
The best way getting Tweets is API. For me, I'm using twitteroauth. I don't understand how to get all tweet of users. Twitter does not let to get tweet more than 200. So you can get 200 tweets per query for one user.
You can create a listener or cronjob for getting last tweets. If you create a listener, when any user send tweets you get simply.

PHP Service Account Accessing a Google Calendar

I was having trouble trying to list all the events of a specific Google Calender using PHP. I was wondering if I could see a working example?
I've looked at documentation here, but it isn't working for me. If someone could give a working example of a service account listing the events of a certain calender, that would be awesome!
check this link spunmonkey.com/display-contents-google-calendar-php . What is your issue with google calendar? Are you not able to retrieve all the events which are in your calendar? Are you getting any error while retreiving? You can try your request here developers.google.com/google-apps/calendar/v3/reference/events/…. Please post your code and error if you have any?
Use this for a guide, but make sure to share your calendar first!All credit goes to SGC.

Hot to get current day from Google Calendar using php?

Anyone know if this is possible?
I need to display the current day in php from my Google Calendar feed?
It would need to display this dependent on who is currently logged in to show their event.
Currently using Wordpress 3.9.2
Thanks in advance!
Get started by reading the Google Calendar API here and then re-post any questions if you still have any:
https://developers.google.com/google-apps/calendar/
Success!

import the events i get invited to on facebook into my website using php

I would like to basically get all the events that i get invited to on facebook to feed my internal website DB with that info; lets say every day using a cron. the problem is that I think you can get the events if you are the one posting the event not the one receiving the invite.
am I wrong or can someone offer me some insight into how to get this accomplished
You can get the events you have not replied using me/events/not_replied or using Graph Api Explorer.
You can get all upcoming events that you have subscribed/accepted via me/events call. Graph APi Exlporer
and save the time in your db and use since parameter with that time to get latest subscribed events.
If you are running cron job then make sure you are not duplicating or missing some events.

Categories