Inviting app users to an app created event - is it possible? - php

I have a question regarding the creation of event invites by a facebook application, and the ability to invite the users who have approved that applications permissions to this event.
For example, we are a local nightclub who have an app allowing users to connect with the app to see who else is attending events etc, and keep up to date with information about the events we host. It would be ideal to be able to send an event invite to these users when we have special events or theme nights.
Currently the app has around 10,000 approved users.
Just really looking to find out if this is at all possible with the new open graph api? In particular the info provided at:
Event API Reference
How To Use the Graph API to Manage Events
There does seem to be some confusion over what these posts say can be achieved, and what actually can be achieved.. unless those that I have previously spoken to are still basing their opinions on the old rest api.
Clarification and pointers appreciated!

The HTTP POST if you use the ?users= can only handle so many IDs before the length of the url overruns. Since it's a post, you can specify the users parameter and then a comma separated list of ids for the value. Try it out here: http://developers.facebook.com/tools/explorer?method=GET&path=me

Related

Building link to post in facebook business manager

We are building an app that creates campaigns and publishes these on our users facebook pages trough our business manager account. We have one part here where we want our users to be able to view their post on business manager. Mailchip does this for example using the following link format:
https://business.facebook.com/{page-id}/posts/{some-id}
The problem we have though is that we can't find the last ID to place in the URL. None of the ones we've found from the API works (campaign_id, ad_id, ad_set_id, ad_creative_id, object_story_id etc).
It is possible to get to this link from inside the business manager if we go trough the notifications and click on a notification related to the post. It perhaps would be possible to go this way but we also can't find anything related to this in the documentation.
Anyone knows how to retrieve this ID?

facebook graph app in php: how to attend group event as soon as it's published?

is such a facebook app written in php possible at all with the current graph api?
i am a member of a closed group on fb. there are three sources for me to get to know about the new events of this group - my notifications, group events, the events of the author of the event (my fb friend). the app must constantly monitor one of these sources and must attend the new event with as little lag as possible as soon as it is published.
i am still missing some pieces of the picture (permissions maybe) after googling and the manual. would appreciate any advice, links.
This would be equivalent to auto-posting, which isn't allowed on Facebook Platform.

How to add an event to other person's Google Calendar with PHP API client?

I am working on a web application with a build-in agenda. I want to add the items that have been added in this build-in agenda, to the user's Google Agenda. But there is one thing I am wondering. How to get access to that user's Google Agenda?
I was able to get access to my own agenda by adding the XXXXXX#developer.gserviceaccount.com email to the list of addresses that have access to my agenda. But asking everyone to do this isn't really user friendly.
So does someone know the best way to request access to another person's agenda so I can add events through the Google PHP API client?
Thanks in advance!
Consider using Oauth tokens. See https://developers.google.com/accounts/docs/OAuth2
and https://developers.google.com/google-apps/calendar/auth

Best practice for custom subscribe action in Facebook app?

I want to implement a facebook app, where I have several authors, which can post updates (text + image - similar to a very simple blog). Actual facebook users can browse the authors inside the app and read their entries.
I now want to create the possibility for facebook users to subscribe to one (or several) authors.
I currently only see two possible solutions:
Store the Facebook ID of the user who wants to subscribe to the feed and send out mass wall updates to every subscribed user, as soon as an author publishes a new entry.
Use the new subscription functionality, provided by Facebook.
To 1.:
This smells like spam.
To 2.:
Seems to be a more sane way, but I can't find any documentation for custom subscription feeds. Is this possible, at all?
Please keep in mind, that it is not sufficient to subscribe to the complete app, since every author should have an own feed.

Adding an appointment to specific user's calendars using with php-ews

I am trying to add an appointment using php-ews to an Exchange 2007 user's calendar. I have the code set up to add to the currently connected user's calendar and that works fine. This user also has permissions to write to other user's calendars. Does anyone know how I would go about directly adding calendar events to some one else's calendar? (I don't want to invite them)
After really digging into ews I finally figured this out and it's pretty easy. You just assign the user to the folder. So if you have:
$request->SavedItemFolderId->DistinguishedFolderId->Id = 'calendar';
Just add:
$request->SavedItemFolderId->DistinguishedFolderId->Mailbox->EmailAddress = 'email#domain.com'
And that's it.
For reference: above mentioned method works for all things you might want to do "on behalf" of a user, be it a task, event or a message. The idea is to have one account that has privileges to other accounts and do the required tasks "on behalf" of other users. This approach simplifies communication with EWS.
For the people who come here seeking more answers regarding communication with EWS via PHP take a look # EWSWrapper that wraps itself around and expands php-ews to make things easier :)

Categories