Add parameters to dialog calls in 8.1 sample app.

This commit is contained in:
Blake Bender 2015-06-12 15:04:41 -07:00 коммит произвёл Gilles Khouzam
Родитель b19b65cb14
Коммит a0aeb64d7e
1 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -137,7 +137,12 @@ void Dialogs::Feed_Click(
)
{
FBSession^ s = FBSession::ActiveSession;
create_task(s->ShowFeedDialog())
PropertySet^ params = ref new PropertySet();
params->Insert(L"caption", L"I love Brussels Sprouts!");
params->Insert(L"link", L"https://en.wikipedia.org/wiki/Brussels_sprout");
params->Insert(L"description", L"Om Nom Nom!");
create_task(s->ShowFeedDialog(params))
.then([=](FBResult^ Response)
{
OutputDebugString(L"Showed 'Feed' dialog.\n");
@ -151,7 +156,12 @@ void Dialogs::AppRequests_Click(
)
{
FBSession^ s = FBSession::ActiveSession;
create_task(s->ShowRequestsDialog())
PropertySet^ params = ref new PropertySet();
params->Insert(L"title", L"I love Brussels Sprouts!");
params->Insert(L"message", L"Om Nom Nom!");
create_task(s->ShowRequestsDialog(params))
.then([=](FBResult^ Response)
{
OutputDebugString(L"Showed 'Requests' dialog.\n");