зеркало из https://github.com/microsoft/winsdkfb.git
Add parameters to dialog calls in 8.1 sample app.
This commit is contained in:
Родитель
b19b65cb14
Коммит
a0aeb64d7e
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче